#[repr(u8)]pub enum Control {
Close = 8,
Ping = 9,
Pong = 10,
Reserved(u8),
}Expand description
Control opcodes as in RFC 6455
Variants§
Close = 8
A close frame
Ping = 9
A ping frame
Pong = 10
A pong frame
Reserved(u8)
0xb-f are reserved for further control frames
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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