Enum websocket::message::Type [] [src]

pub enum Type {
    Text,
    Binary,
    Ping,
    Pong,
    Close,
}

Valid types of messages (in the default implementation)

Variants

Text

Message with UTF8 test

Binary

Message containing binary data

Ping

Ping message with data

Pong

Pong message with data

Close

Close connection message with optional reason

Trait Implementations

Derived Implementations

impl Copy for Type

impl Clone for Type

fn clone(&self) -> Type

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

impl PartialEq for Type

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

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

impl Debug for Type

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