Enum tungstenite::protocol::frame::coding::Data [−][src]
pub enum Data {
Continue,
Text,
Binary,
Reserved(u8),
}Data opcodes as in RFC 6455
Variants
Continue0x0 denotes a continuation frame
Text0x1 denotes a text frame
Binary0x2 denotes a binary frame
Reserved(u8)0x3-7 are reserved for further non-control frames
Trait Implementations
impl Debug for Data[src]
impl Debug for Datafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Data[src]
impl PartialEq for Datafn eq(&self, other: &Data) -> bool[src]
fn eq(&self, other: &Data) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Data) -> bool[src]
fn ne(&self, other: &Data) -> boolThis method tests for !=.
impl Eq for Data[src]
impl Eq for Dataimpl Clone for Data[src]
impl Clone for Datafn clone(&self) -> Data[src]
fn clone(&self) -> DataReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Data[src]
impl Copy for Dataimpl Display for Data[src]
impl Display for Data