Enum actix_http::ws::Frame [−][src]
pub enum Frame {
Text(Bytes),
Binary(Bytes),
Continuation(Item),
Ping(Bytes),
Pong(Bytes),
Close(Option<CloseReason>),
}Expand description
WebSocket frame
Variants
Text frame, codec does not verify utf8 encoding
Tuple Fields of Text
0: BytesBinary frame
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>