Enum tungstenite::protocol::frame::coding::Control [−][src]
pub enum Control {
Close,
Ping,
Pong,
Reserved(u8),
}Control opcodes as in RFC 6455
Variants
Close0x8 denotes a connection close
Ping0x9 denotes a ping
Pong0xa denotes a pong
Reserved(u8)0xb-f are reserved for further control frames
Trait Implementations
impl Debug for Control[src]
impl Debug for Controlfn 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 Control[src]
impl PartialEq for Controlfn eq(&self, other: &Control) -> bool[src]
fn eq(&self, other: &Control) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Control) -> bool[src]
fn ne(&self, other: &Control) -> boolThis method tests for !=.
impl Eq for Control[src]
impl Eq for Controlimpl Clone for Control[src]
impl Clone for Controlfn clone(&self) -> Control[src]
fn clone(&self) -> ControlReturns 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 Control[src]
impl Copy for Controlimpl Display for Control[src]
impl Display for Control