Enum websocket::dataframe::Opcode [] [src]

pub enum Opcode {
    Continuation,
    Text,
    Binary,
    NonControl1,
    NonControl2,
    NonControl3,
    NonControl4,
    NonControl5,
    Close,
    Ping,
    Pong,
    Control1,
    Control2,
    Control3,
    Control4,
    Control5,
}

Represents a WebSocket data frame opcode

Variants

A continuation data frame

A UTF-8 text data frame

A binary data frame

An undefined non-control data frame

An undefined non-control data frame

An undefined non-control data frame

An undefined non-control data frame

An undefined non-control data frame

A close data frame

A ping data frame

A pong data frame

An undefined control data frame

An undefined control data frame

An undefined control data frame

An undefined control data frame

An undefined control data frame

Methods

impl Opcode
[src]

[src]

Attempts to form an Opcode from a nibble.

Returns the Opcode, or None if the opcode is out of range.

Trait Implementations

impl Clone for Opcode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Opcode
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Opcode
[src]

impl PartialEq for Opcode
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Opcode

impl Sync for Opcode