Enum actix_web_actors::ws::Frame [−][src]
pub enum Frame { Text(Bytes), Binary(Bytes), Continuation(Item), Ping(Bytes), Pong(Bytes), Close(Option<CloseReason>), }
Expand description
A WebSocket frame.
Variants
Text(Bytes)
Text frame. Note that the codec does not validate UTF-8 encoding.
Binary(Bytes)
Binary frame.
Continuation(Item)
Continuation.
Ping(Bytes)
Ping message.
Pong(Bytes)
Pong message.
Close(Option<CloseReason>)
Close message with optional reason.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl UnwindSafe for Frame