Enum actix_http::ws::Message [−][src]
pub enum Message {
Text(ByteString),
Binary(Bytes),
Continuation(Item),
Ping(Bytes),
Pong(Bytes),
Close(Option<CloseReason>),
Nop,
}
Expand description
A WebSocket message.
Variants
Text(ByteString)
Text message.
Tuple Fields of Text
0: ByteString
Binary(Bytes)
Binary message.
Tuple Fields of Binary
0: Bytes
Continuation(Item)
Continuation.
Tuple Fields of Continuation
0: Item
Ping(Bytes)
Ping message.
Tuple Fields of Ping
0: Bytes
Pong(Bytes)
Pong message.
Tuple Fields of Pong
0: Bytes
Close(Option<CloseReason>)
Close message with optional reason.
Tuple Fields of Close
0: Option<CloseReason>
No-op. Useful for low-level services.