Enum actix_http::ws::Message [−][src]
pub enum Message {
Text(String),
Binary(Bytes),
Continuation(Item),
Ping(Bytes),
Pong(Bytes),
Close(Option<CloseReason>),
Nop,
}Expand description
WebSocket Message
Variants
Text message
Tuple Fields of Text
0: StringBinary 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 actix-net services