[][src]Enum wsq::OpCode

pub enum OpCode {
    Continue,
    Text,
    Binary,
    Close,
    Ping,
    Pong,
    Bad,
}

Operation codes as part of rfc6455.

Variants

Continue

Indicates a continuation frame of a fragmented message.

Text

Indicates a text data frame.

Binary

Indicates a binary data frame.

Close

Indicates a close control frame.

Ping

Indicates a ping control frame.

Pong

Indicates a pong control frame.

Bad

Indicates an invalid opcode was received.

Methods

impl OpCode[src]

pub fn is_control(&self) -> bool[src]

Test whether the opcode indicates a control frame.

Trait Implementations

impl From<u8> for OpCode[src]

impl Into<u8> for OpCode[src]

impl Clone for OpCode[src]

impl Copy for OpCode[src]

impl Eq for OpCode[src]

impl PartialEq<OpCode> for OpCode[src]

impl Debug for OpCode[src]

impl Display for OpCode[src]

impl StructuralPartialEq for OpCode[src]

impl StructuralEq for OpCode[src]

Auto Trait Implementations

impl Send for OpCode

impl Sync for OpCode

impl Unpin for OpCode

impl UnwindSafe for OpCode

impl RefUnwindSafe for OpCode

Blanket Implementations

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

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

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self