[][src]Struct libp2p_core::transport::memory::Chan

pub struct Chan<T = Bytes> { /* fields omitted */ }

A channel represents an established, in-memory, logical connection between two endpoints.

Implements Sink and Stream.

Trait Implementations

impl<T: IntoBuf> Into<RwStreamSink<Chan<T>>> for Chan<T>[src]

impl<T> Stream for Chan<T>[src]

type Item = T

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

impl<T> Sink for Chan<T>[src]

type SinkItem = T

The type of value that the sink accepts.

type SinkError = Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<T> Send for Chan<T> where
    T: Send

impl<T> Sync for Chan<T> where
    T: Send

impl<T> Unpin for Chan<T>

impl<T = Bytes> !UnwindSafe for Chan<T>

impl<T = Bytes> !RefUnwindSafe for Chan<T>

Blanket Implementations

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

impl<T> From<T> for T[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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