Enum ws::OpCode [] [src]

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

Operation codes as part of rfc6455.

Variants

Indicates a continuation frame of a fragmented message.

Indicates a text data frame.

Indicates a binary data frame.

Indicates a close control frame.

Indicates a ping control frame.

Indicates a pong control frame.

Indicates an invalid opcode was received.

Methods

impl OpCode
[src]

Test whether the opcode indicates a control frame.

Trait Implementations

impl Debug for OpCode
[src]

Formats the value using the given formatter.

impl Eq for OpCode
[src]

impl PartialEq for OpCode
[src]

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

This method tests for !=.

impl Clone for OpCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for OpCode
[src]

impl Display for OpCode
[src]

Formats the value using the given formatter.

impl Into<u8> for OpCode
[src]

Performs the conversion.

impl From<u8> for OpCode
[src]

Performs the conversion.