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(&'a [u8])
Ping mesage
Pong(&'a [u8])
Pong mesage
Text(&'a str)
Text (utf-8) message
Binary(&'a [u8])
Binary message
Close(u16, &'a str)
Close message
Trait Implementations
impl<'a> Debug for Frame<'a>
[src]
impl<'a> Clone for Frame<'a>
[src]
fn clone(&self) -> Frame<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Frame<'a>
[src]
fn eq(&self, __arg_0: &Frame<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Frame<'a>) -> bool
This method tests for !=
.