Enum libp2p::websocket::framed::OutgoingData[][src]

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

Data sent over the websocket connection.

Variants

Binary(Vec<u8, Global>)

Send some bytes.

Ping(Vec<u8, Global>)

Send a PING message.

Pong(Vec<u8, Global>)

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

impl RefUnwindSafe for OutgoingData

impl Send for OutgoingData

impl Sync for OutgoingData

impl Unpin for OutgoingData

impl UnwindSafe for OutgoingData

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[src]

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>, 
[src]