Enum websocket_base::message::Type
source · [−]pub enum Type {
Text,
Binary,
Ping,
Pong,
Close,
}
Expand description
Valid types of messages (in the default implementation)
Variants
Text
Message with UTF8 test
Binary
Message containing binary data
Ping
Ping message with data
Pong
Pong message with data
Close
Close connection message with optional reason
Trait Implementations
impl Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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