[][src]Struct libp2p_websocket::framed::BytesConnection

pub struct BytesConnection<T> { /* fields omitted */ }

A Stream and Sink that produces and consumes BytesMut values which correspond to the payload data of websocket frames.

Trait Implementations

impl<T: Debug> Debug for BytesConnection<T>[src]

impl<T: AsyncRead + AsyncWrite> Stream for BytesConnection<T>[src]

type Item = BytesMut

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

impl<T: AsyncRead + AsyncWrite> Sink for BytesConnection<T>[src]

type SinkItem = BytesMut

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 BytesConnection<T> where
    T: Send

impl<T> !Sync for BytesConnection<T>

impl<T> Unpin for BytesConnection<T> where
    T: Unpin

impl<T> !UnwindSafe for BytesConnection<T>

impl<T> !RefUnwindSafe for BytesConnection<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>,