Enum OpCode
enum OpCode
WebSocket message opcode as in RFC 6455.
Variants
-
Data(Data) Data (text or binary).
-
Control(Control) Control message (close, ping, pong).
Implementations
impl Clone for OpCode
fn clone(self: &Self) -> OpCode
impl Copy for OpCode
impl Debug for OpCode
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for OpCode
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for OpCode
impl Freeze for OpCode
impl From for OpCode
fn from(byte: u8) -> OpCode
impl PartialEq for OpCode
fn eq(self: &Self, other: &OpCode) -> bool
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl StructuralPartialEq for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnsafeUnpin for OpCode
impl UnwindSafe for OpCode
impl<T> Any for OpCode
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for OpCode
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for OpCode
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for OpCode
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for OpCode
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for OpCode
impl<T> ToOwned for OpCode
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for OpCode
fn to_string(self: &Self) -> String
impl<T, U> Into for OpCode
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for OpCode
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for OpCode
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for OpCode
fn vzip(self: Self) -> V