pub enum OpCode {
Continuation,
Text,
Binary,
Close,
Ping,
Pong,
}
Expand description
Represents the opcode of a WebSocket frame.
Variants§
Continuation
Indicates a continuation frame.
Text
Indicates a text frame.
Binary
Indicates a binary frame.
Close
Indicates a close frame.
Ping
Indicates a ping frame.
Pong
Indicates a pong frame.
Trait Implementations§
impl 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