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

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

Valid types of messages (in the default implementation)

Variants

Message with UTF8 test

Message containing binary data

Ping message with data

Pong message with data

Close connection message with optional reason

Trait Implementations

impl Debug for Type
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Type
[src]

impl PartialEq for Type
[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 !=.

impl Clone for Type
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Type
[src]

Auto Trait Implementations

impl Send for Type

impl Sync for Type