pub enum Data {
Continue,
Text,
Binary,
Reserved(u8),
}
Expand description
Data opcodes as in RFC 6455
Variants
Continue
0x0 denotes a continuation frame
Text
0x1 denotes a text frame
Binary
0x2 denotes a binary frame
Reserved(u8)
0x3-7 are reserved for further non-control frames
Trait Implementations
impl Copy for Data
impl Eq for Data
impl StructuralEq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more