Struct libp2p::pnet::PnetConfig [−][src]
pub struct PnetConfig { /* fields omitted */ }Expand description
Private network configuration
Implementations
upgrade a connection to use pre shared key encryption.
the upgrade works by both sides exchanging 24 byte nonces and then encrypting subsequent traffic with XSalsa20
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PnetConfigimpl Send for PnetConfigimpl Sync for PnetConfigimpl Unpin for PnetConfigimpl UnwindSafe for PnetConfigBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V