Enum ratchet_rs::Message [−][src]
pub enum Message {
Text,
Binary,
Ping,
Pong,
Close(Option<CloseReason>),
}
Expand description
A received WebSocket frame.
Variants
Text
A text message.
Note
RFC6455 is not strict as to when UTF-8 validation takes place. As such, Ratchet opts to not validate the text payload and leaves it to the user to validate it once the message has been received.
Binary
A binary message.
Ping
A ping message.
Pong
A pong message.
Close(Option<CloseReason>)
Tuple Fields
0: Option<CloseReason>
A close message.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more