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 message.
Tuple Fields of Text
0: ByteStringBinary message.
Tuple Fields of Binary
0: BytesContinuation.
Tuple Fields of Continuation
0: ItemPing message.
Tuple Fields of Ping
0: BytesPong message.
Tuple Fields of Pong
0: BytesClose message with optional reason.
Tuple Fields of Close
0: Option<CloseReason>No-op. Useful for low-level services.