pub enum OpCode {
Show 16 variants
Continue,
Text,
Binary,
Close,
Ping,
Pong,
Reserved3,
Reserved4,
Reserved5,
Reserved6,
Reserved7,
Reserved11,
Reserved12,
Reserved13,
Reserved14,
Reserved15,
}
Expand description
Operation codes defined in RFC 6455.
Variants§
Continue
A continuation frame of a fragmented message.
Text
A text data frame.
Binary
A binary data frame.
Close
A close control frame.
Ping
A ping control frame.
Pong
A pong control frame.
Reserved3
A reserved op code.
Reserved4
A reserved op code.
Reserved5
A reserved op code.
Reserved6
A reserved op code.
Reserved7
A reserved op code.
Reserved11
A reserved op code.
Reserved12
A reserved op code.
Reserved13
A reserved op code.
Reserved14
A reserved op code.
Reserved15
A reserved op code.
Implementations§
source§impl OpCode
impl OpCode
sourcepub fn is_control(self) -> bool
pub fn is_control(self) -> bool
Is this a control opcode?
sourcepub fn is_reserved(self) -> bool
pub fn is_reserved(self) -> bool
Is this opcode reserved?
Trait Implementations§
source§impl Ord for OpCode
impl Ord for OpCode
source§impl PartialEq for OpCode
impl PartialEq for OpCode
source§impl PartialOrd for OpCode
impl PartialOrd for OpCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OpCode
impl Eq for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)