pub enum UnitFrameType {
Text,
Binary,
Continuation,
Ping,
Pong,
ConnectionClose,
Reserved,
}Expand description
The type of a WebSocket frame.
Variants§
Trait Implementations§
Source§impl Clone for UnitFrameType
impl Clone for UnitFrameType
Source§fn clone(&self) -> UnitFrameType
fn clone(&self) -> UnitFrameType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnitFrameType
Source§impl Debug for UnitFrameType
impl Debug for UnitFrameType
Source§impl PartialEq for UnitFrameType
impl PartialEq for UnitFrameType
Source§fn eq(&self, other: &UnitFrameType) -> bool
fn eq(&self, other: &UnitFrameType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnitFrameType
Auto Trait Implementations§
impl Freeze for UnitFrameType
impl RefUnwindSafe for UnitFrameType
impl Send for UnitFrameType
impl Sync for UnitFrameType
impl Unpin for UnitFrameType
impl UnsafeUnpin for UnitFrameType
impl UnwindSafe for UnitFrameType
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