Enum actix_web::ws::Message[][src]

pub enum Message {
    Text(String),
    Binary(Binary),
    Ping(String),
    Pong(String),
    Close(Option<CloseReason>),
}
[]

WebSocket Message

Variants

[]

Text message

[]

Binary message

[]

Ping message

[]

Pong message

[]

Close message with optional reason

Trait Implementations

impl Message for Message
[src]

The type of value that this message will resolved with if it is successful. Read more

impl Debug for Message
[src]
[+]

[]

Formats the value using the given formatter. 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 !=.

Auto Trait Implementations

impl Send for Message

impl Sync for Message