[][src]Enum libp2p_websocket::framed::OutgoingData

pub enum OutgoingData {
    Binary(Vec<u8>),
    Ping(Vec<u8>),
    Pong(Vec<u8>),
}

Data sent over the websocket connection.

Variants

Binary(Vec<u8>)

Send some bytes.

Ping(Vec<u8>)

Send a PING message.

Pong(Vec<u8>)

Send an unsolicited PONG message. (Incoming PINGs are answered automatically.)

Trait Implementations

impl Clone for OutgoingData[src]

impl Debug for OutgoingData[src]

impl<T> Sink<OutgoingData> for Connection<T> where
    T: AsyncRead + AsyncWrite + Send + Unpin + 'static, 
[src]

type Error = Error

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

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,