pub enum WsControlFrameKind {
Ping,
Pong,
Close,
}
Variants§
Implementations§
Source§impl WsControlFrameKind
impl WsControlFrameKind
pub fn opcode(self) -> WsOpcode
pub fn frame_kind(self) -> WsFrameKind
Trait Implementations§
Source§impl Clone for WsControlFrameKind
impl Clone for WsControlFrameKind
Source§fn clone(&self) -> WsControlFrameKind
fn clone(&self) -> WsControlFrameKind
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 WsControlFrameKind
impl Debug for WsControlFrameKind
Source§impl PartialEq for WsControlFrameKind
impl PartialEq for WsControlFrameKind
impl Copy for WsControlFrameKind
impl Eq for WsControlFrameKind
impl StructuralPartialEq for WsControlFrameKind
Auto Trait Implementations§
impl Freeze for WsControlFrameKind
impl RefUnwindSafe for WsControlFrameKind
impl Send for WsControlFrameKind
impl Sync for WsControlFrameKind
impl Unpin for WsControlFrameKind
impl UnwindSafe for WsControlFrameKind
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