Enum soket::data::Incoming[][src]

pub enum Incoming<'a> {
    Data(Data),
    Pong(&'a [u8]),
}

Data received from the remote end.

Variants

Data(Data)

Text or binary data.

Pong(&'a [u8])

Data sent with a PONG control frame.

Implementations

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?

pub fn len(&self) -> usize[src]

The length of data (number of bytes).

Trait Implementations

impl<'a> Clone for Incoming<'a>[src]

impl<'a> Debug for Incoming<'a>[src]

impl<'a> Eq for Incoming<'a>[src]

impl<'a> Hash for Incoming<'a>[src]

impl<'a> Ord for Incoming<'a>[src]

impl<'a> PartialEq<Incoming<'a>> for Incoming<'a>[src]

impl<'a> PartialOrd<Incoming<'a>> for Incoming<'a>[src]

impl<'a> StructuralEq for Incoming<'a>[src]

impl<'a> StructuralPartialEq for Incoming<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Incoming<'a>

impl<'a> Send for Incoming<'a>

impl<'a> Sync for Incoming<'a>

impl<'a> Unpin for Incoming<'a>

impl<'a> UnwindSafe for Incoming<'a>

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