pub enum WsFrameKind {
Control(WsControlFrameKind),
Data(WsDataFrameKind),
}
Variants§
Control(WsControlFrameKind)
Data(WsDataFrameKind)
Implementations§
Source§impl WsFrameKind
impl WsFrameKind
pub fn max_payload_len(self) -> u64
pub fn opcode(self) -> WsOpcode
pub fn is_control(self) -> bool
Trait Implementations§
Source§impl Clone for WsFrameKind
impl Clone for WsFrameKind
Source§fn clone(&self) -> WsFrameKind
fn clone(&self) -> WsFrameKind
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 WsFrameKind
impl Debug for WsFrameKind
impl Copy for WsFrameKind
Auto Trait Implementations§
impl Freeze for WsFrameKind
impl RefUnwindSafe for WsFrameKind
impl Send for WsFrameKind
impl Sync for WsFrameKind
impl Unpin for WsFrameKind
impl UnwindSafe for WsFrameKind
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