pub struct ConnectedPeerOptions { /* private fields */ }Implementations§
Source§impl ConnectedPeerOptions
impl ConnectedPeerOptions
pub fn new() -> ConnectedPeerOptions
pub fn with_by_secret(self, secret: BySecret) -> ConnectedPeerOptions
pub fn with_peer_proof(self, value: PeerProofAssurance) -> ConnectedPeerOptions
pub fn with_expected_peer_by(self, value: ByValue) -> ConnectedPeerOptions
Sourcepub fn with_stream_encodings(
self,
encodings: impl IntoIterator<Item = StreamEncoding>,
) -> ConnectedPeerOptions
pub fn with_stream_encodings( self, encodings: impl IntoIterator<Item = StreamEncoding>, ) -> ConnectedPeerOptions
One ordered list of compressed stream encodings: the encode preference
and the decode set offered in every preface. identity is implied;
an empty list offers only identity. Defaults to every compiled-in
encoding, StreamEncoding::COMPILED.
Sourcepub fn with_port(self, port: PortText) -> ConnectedPeerOptions
pub fn with_port(self, port: PortText) -> ConnectedPeerOptions
What this side wants to talk to, sent in every preface of the carrier.
Trait Implementations§
Source§impl Clone for ConnectedPeerOptions
impl Clone for ConnectedPeerOptions
Source§fn clone(&self) -> ConnectedPeerOptions
fn clone(&self) -> ConnectedPeerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectedPeerOptions
impl Debug for ConnectedPeerOptions
Source§impl Default for ConnectedPeerOptions
impl Default for ConnectedPeerOptions
Source§fn default() -> ConnectedPeerOptions
fn default() -> ConnectedPeerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectedPeerOptions
impl RefUnwindSafe for ConnectedPeerOptions
impl Send for ConnectedPeerOptions
impl Sync for ConnectedPeerOptions
impl Unpin for ConnectedPeerOptions
impl UnsafeUnpin for ConnectedPeerOptions
impl UnwindSafe for ConnectedPeerOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more