[][src]Enum awc::ws::Frame

pub enum Frame {
    Text(Option<BytesMut>),
    Binary(Option<BytesMut>),
    Ping(String),
    Pong(String),
    Close(Option<CloseReason>),
}

WebSocket frame

Variants

Text(Option<BytesMut>)

Text frame, codec does not verify utf8 encoding

Binary(Option<BytesMut>)

Binary frame

Ping(String)

Ping message

Pong(String)

Pong message

Close(Option<CloseReason>)

Close message with optional reason

Trait Implementations

impl Debug for Frame[src]

impl PartialEq<Frame> for Frame[src]

Auto Trait Implementations

impl Sync for Frame

impl Send for Frame

impl Unpin for Frame

impl RefUnwindSafe for Frame

impl UnwindSafe for Frame

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,