[][src]Enum hawk_ws::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 Eq for OpCode[src]

impl Into<u8> for OpCode[src]

impl PartialEq<OpCode> for OpCode[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for OpCode[src]

impl Clone for OpCode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<u8> for OpCode[src]

impl Debug for OpCode[src]

impl Display for OpCode[src]

Auto Trait Implementations

impl Send for OpCode

impl Sync for OpCode

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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

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