[][src]Enum mio_httpc::WSPacket

pub enum WSPacket<'a> {
    None,
    Text(bool, &'a str),
    Binary(bool&'a [u8]),
    Ping(&'a [u8]),
    Pong(&'a [u8]),
    Close(Option<u16>, &'a [u8]),
}

WebSocket packet received from server.

Variants

None

Nothing to return yet.

Text(bool, &'a str)

(fin,text)

Binary(bool&'a [u8])

(fin, bin)

Ping(&'a [u8])

Ping may contain data. You should send pong back.

Pong(&'a [u8])

Pong may contain data.

Close(Option<u16>, &'a [u8])

(StatusCode,Data) Close may contain data. You should call close after receiving this (if you did not already).

Auto Trait Implementations

impl<'a> RefUnwindSafe for WSPacket<'a>[src]

impl<'a> Send for WSPacket<'a>[src]

impl<'a> Sync for WSPacket<'a>[src]

impl<'a> Unpin for WSPacket<'a>[src]

impl<'a> UnwindSafe for WSPacket<'a>[src]

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