Enum tungstenite::protocol::frame::coding::OpCode [] [src]

pub enum OpCode {
    Data(Data),
    Control(Control),
}

WebSocket message opcode as in RFC 6455.

Variants

Data (text or binary).

Control message (close, ping, pong).

Trait Implementations

impl Debug for OpCode
[src]

Formats the value using the given formatter.

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

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. Read more

impl Into<u8> for OpCode
[src]

Performs the conversion.

impl From<u8> for OpCode
[src]

Performs the conversion.