Enum async_ws::frame::WsControlFrameKind
source · 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<WsControlFrameKind> for WsControlFrameKind
impl PartialEq<WsControlFrameKind> for WsControlFrameKind
source§fn eq(&self, other: &WsControlFrameKind) -> bool
fn eq(&self, other: &WsControlFrameKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WsControlFrameKind
impl Eq for WsControlFrameKind
impl StructuralEq for WsControlFrameKind
impl StructuralPartialEq for WsControlFrameKind
Auto Trait Implementations§
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