pub enum OpCode {
Continuation,
Text,
Binary,
Close,
Ping,
Pong,
}
Variants§
Continuation
Continuation frame from last packed
Text
UTF-8 text data
Binary
Binary data as u8
Close
Indicates client has closed connection
Ping
Heartbeat requested from client
Pong
Heartbeat response to ping frame Can also be sent without a ping request
Trait Implementations§
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