Enum tungstenite::protocol::frame::coding::Control [−][src]
pub enum Control { Close, Ping, Pong, Reserved(u8), }
Control opcodes as in RFC 6455
Variants
Close
0x8 denotes a connection close
Ping
0x9 denotes a ping
Pong
0xa denotes a pong
Reserved(u8)
0xb-f are reserved for further control frames
Trait Implementations
impl Debug for Control
[src]
impl Debug for Control
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Control
[src]
impl PartialEq for Control
fn eq(&self, other: &Control) -> bool
[src]
fn eq(&self, other: &Control) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Control
[src]
impl Eq for Control
impl Clone for Control
[src]
impl Clone for Control
fn clone(&self) -> Control
[src]
fn clone(&self) -> Control
Returns 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 Control
impl Display for Control
[src]
impl Display for Control