Enum rouille::websocket::Message [] [src]

pub enum Message {
    Text(String),
    Binary(Vec<u8>),
}

A message produced by a websocket connection.

Variants

Text data. If the client is in Javascript, this happens when the client called send() with a string.

Binary data. If the client is in Javascript, this happens when the client called send() with a blob or an arraybuffer.

Trait Implementations

impl Debug for Message
[src]

Formats the value using the given formatter.

impl Clone for Message
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Message
[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 Message
[src]