Enum ws::OpCode [] [src]

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]

fn is_control(&self) -> bool

Test whether the opcode indicates a control frame.

Trait Implementations

impl Copy for OpCode
[src]

impl Clone for OpCode
[src]

fn clone(&self) -> OpCode

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl PartialEq for OpCode
[src]

fn eq(&self, __arg_0: &OpCode) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for OpCode
[src]

impl Debug for OpCode
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for OpCode
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Into<u8> for OpCode
[src]

fn into(self) -> u8

Performs the conversion.

impl From<u8> for OpCode
[src]

fn from(byte: u8) -> OpCode

Performs the conversion.