pub enum WsDataFrameKind {
Text,
Binary,
Continuation,
}
Variants§
Implementations§
Source§impl WsDataFrameKind
impl WsDataFrameKind
pub fn opcode(self) -> WsOpcode
pub fn message_kind(self) -> Option<WsMessageKind>
pub fn frame_kind(self) -> WsFrameKind
Trait Implementations§
Source§impl Clone for WsDataFrameKind
impl Clone for WsDataFrameKind
Source§fn clone(&self) -> WsDataFrameKind
fn clone(&self) -> WsDataFrameKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WsDataFrameKind
impl Debug for WsDataFrameKind
Source§impl Display for WsDataFrameKind
impl Display for WsDataFrameKind
Source§impl From<WsDataFrameKind> for WsConnectionError
impl From<WsDataFrameKind> for WsConnectionError
Source§fn from(kind: WsDataFrameKind) -> Self
fn from(kind: WsDataFrameKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WsDataFrameKind
impl PartialEq for WsDataFrameKind
impl Copy for WsDataFrameKind
impl Eq for WsDataFrameKind
impl StructuralPartialEq for WsDataFrameKind
Auto Trait Implementations§
impl Freeze for WsDataFrameKind
impl RefUnwindSafe for WsDataFrameKind
impl Send for WsDataFrameKind
impl Sync for WsDataFrameKind
impl Unpin for WsDataFrameKind
impl UnwindSafe for WsDataFrameKind
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