Enum Control

enum Control

Control opcodes as in RFC 6455

Variants

Close

0x8 denotes a connection close

Ping

0x9 denotes a ping

Pong

0xa denotes a pong

Reserved(u8)

0xb-f are reserved for further control frames

Implementations

impl Clone for Control

fn clone(self: &Self) -> Control

impl Copy for Control

impl Debug for Control

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for Control

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for Control

impl Freeze for Control

impl PartialEq for Control

fn eq(self: &Self, other: &Control) -> bool

impl RefUnwindSafe for Control

impl Send for Control

impl StructuralPartialEq for Control

impl Sync for Control

impl Unpin for Control

impl UnsafeUnpin for Control

impl UnwindSafe for Control

impl<T> Any for Control

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Control

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Control

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Control

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Control

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for Control

impl<T> ToOwned for Control

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for Control

fn to_string(self: &Self) -> String

impl<T, U> Into for Control

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Control

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Control

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for Control

fn vzip(self: Self) -> V