[][src]Struct libp2prs_noise::NoiseOutput

pub struct NoiseOutput<T: SplitEx> {
    pub io: NoiseSecureStream<T::Reader, T::Writer>,
    // some fields omitted
}

A noise session to a remote.

T is the type of the underlying I/O resource.

Fields

io: NoiseSecureStream<T::Reader, T::Writer>

Implementations

impl<T: SplittableReadWrite> NoiseOutput<T>[src]

pub fn add_addr(&mut self, la: Multiaddr, ra: Multiaddr)[src]

Trait Implementations

impl<T: ConnectionInfo + SplitEx> ConnectionInfo for NoiseOutput<T>[src]

impl<T: SplittableReadWrite> ReadEx for NoiseOutput<T>[src]

impl<T: SplitEx> SecureInfo for NoiseOutput<T>[src]

impl<S: SplittableReadWrite> SplitEx for NoiseOutput<S>[src]

type Reader = NoiseSecureStreamReader<S::Reader>

read half

type Writer = NoiseSecureStreamWriter<S::Writer>

write half

impl<T: SplittableReadWrite> WriteEx for NoiseOutput<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for NoiseOutput<T>[src]

impl<T> Send for NoiseOutput<T> where
    <T as SplitEx>::Reader: Send,
    <T as SplitEx>::Writer: Send
[src]

impl<T> Sync for NoiseOutput<T> where
    <T as SplitEx>::Reader: Sync,
    <T as SplitEx>::Writer: Sync
[src]

impl<T> Unpin for NoiseOutput<T> where
    <T as SplitEx>::Reader: Unpin,
    <T as SplitEx>::Writer: Unpin
[src]

impl<T> !UnwindSafe for NoiseOutput<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SplittableReadWrite for T where
    T: 'static + SplitEx + ReadEx + WriteEx + Unpin
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,