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 PnetConfig
impl Send for PnetConfig
impl Sync for PnetConfig
impl Unpin for PnetConfig
impl UnwindSafe for PnetConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V