Enum tungstenite::protocol::frame::coding::OpCode[][src]

pub enum OpCode {
    Data(Data),
    Control(Control),
}

WebSocket message opcode as in RFC 6455.

Variants

Data(Data)

Data (text or binary).

Control(Control)

Control message (close, ping, pong).

Trait Implementations

impl Clone for OpCode[src]

impl Copy for OpCode[src]

impl Debug for OpCode[src]

impl Display for OpCode[src]

impl Eq for OpCode[src]

impl From<u8> for OpCode[src]

impl Into<u8> for OpCode[src]

impl PartialEq<OpCode> for OpCode[src]

impl StructuralEq for OpCode[src]

impl StructuralPartialEq for OpCode[src]

Auto Trait Implementations

impl RefUnwindSafe for OpCode

impl Send for OpCode

impl Sync for OpCode

impl Unpin for OpCode

impl UnwindSafe for OpCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]