Enum ws::OpCode
[−]
[src]
pub enum OpCode { Continue, Text, Binary, Close, Ping, Pong, Bad, }
Operation codes as part of rfc6455.
Variants
Continue
Indicates a continuation frame of a fragmented message.
Text
Indicates a text data frame.
Binary
Indicates a binary data frame.
Close
Indicates a close control frame.
Ping
Indicates a ping control frame.
Pong
Indicates a pong control frame.
Bad
Indicates an invalid opcode was received.
Methods
impl OpCode
[src]
fn is_control(&self) -> bool
Test whether the opcode indicates a control frame.
Trait Implementations
impl Debug for OpCode
[src]
impl Eq for OpCode
[src]
impl PartialEq for OpCode
[src]
fn eq(&self, __arg_0: &OpCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for OpCode
[src]
fn clone(&self) -> OpCode
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