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: ByteStringBinary(Bytes)Binary message.
Tuple Fields of Binary
0: BytesContinuation(Item)Continuation.
Tuple Fields of Continuation
0: ItemPing(Bytes)Ping message.
Tuple Fields of Ping
0: BytesPong(Bytes)Pong message.
Tuple Fields of Pong
0: BytesClose(Option<CloseReason>)Close message with optional reason.
Tuple Fields of Close
0: Option<CloseReason>No-op. Useful for low-level services.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more