Enum tk_http::websocket::Frame [] [src]

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

A borrowed frame of websocket data

Variants

Ping mesage

Pong mesage

Text (utf-8) message

Binary message

Close message

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Into<Packet> for Frame<'a>
[src]

Performs the conversion.

impl<'a> Into<Packet> for &'a Frame<'a>
[src]

Performs the conversion.