[][src]Enum soketto::data::Incoming

pub enum Incoming {
    Data(Data),
    Pong(Data),
}

Data received from the remote end.

Variants

Data(Data)

Text or binary data.

Pong(Data)

Data sent with a PONG control frame.

Methods

impl Incoming[src]

pub fn is_data(&self) -> bool[src]

Is this text or binary data?

pub fn is_pong(&self) -> bool[src]

Is this a PONG?

pub fn is_text(&self) -> bool[src]

Is this text data?

pub fn is_binary(&self) -> bool[src]

Is this binary data?

Trait Implementations

impl AsMut<[u8]> for Incoming[src]

impl AsRef<[u8]> for Incoming[src]

impl Clone for Incoming[src]

impl Debug for Incoming[src]

impl Eq for Incoming[src]

impl Hash for Incoming[src]

impl Into<Data> for Incoming[src]

impl Ord for Incoming[src]

impl PartialEq<Incoming> for Incoming[src]

impl PartialOrd<Incoming> for Incoming[src]

impl StructuralEq for Incoming[src]

impl StructuralPartialEq for Incoming[src]

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