Struct libp2p_noise::LegacyConfig
source · pub struct LegacyConfig {
pub send_legacy_handshake: bool,
pub recv_legacy_handshake: bool,
}
Expand description
Legacy configuration options.
Fields§
§send_legacy_handshake: bool
Whether 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: bool
Whether 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§
source§impl Clone for LegacyConfig
impl Clone for LegacyConfig
source§fn clone(&self) -> LegacyConfig
fn clone(&self) -> LegacyConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for LegacyConfig
impl Default for LegacyConfig
source§fn 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§
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