Struct libp2p_noise::LegacyConfig
source · [−]Expand description
Legacy configuration options.
Fields
send_legacy_handshake: boolWhether to continue sending legacy handshake payloads, i.e. length-prefixed protobuf payloads inside a length-prefixed noise frame. These payloads are not interoperable with other libp2p implementations.
recv_legacy_handshake: boolWhether to support receiving legacy handshake payloads, i.e. length-prefixed protobuf payloads inside a length-prefixed noise frame. These payloads are not interoperable with other libp2p implementations.
Trait Implementations
sourceimpl Clone for LegacyConfig
impl Clone for LegacyConfig
sourcefn clone(&self) -> LegacyConfig
fn clone(&self) -> LegacyConfig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Default for LegacyConfig
impl Default for LegacyConfig
sourcefn default() -> LegacyConfig
fn default() -> LegacyConfig
Returns the “default value” for a type. Read more
impl Copy for LegacyConfig
Auto Trait Implementations
impl RefUnwindSafe for LegacyConfig
impl Send for LegacyConfig
impl Sync for LegacyConfig
impl Unpin for LegacyConfig
impl UnwindSafe for LegacyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more