Struct tungstenite::protocol::frame::Frame [−][src]
pub struct Frame { /* fields omitted */ }
Expand description
A struct representing a WebSocket frame.
Implementations
Get the length of the frame. This is the length of the header + the length of the payload.
Get a reference to the frame’s header.
Get a mutable reference to the frame’s header.
Get a mutable reference to the frame’s payload.
Consume the frame into its payload as string.
Create a new Close control frame.
Create a frame from given header and data.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl UnwindSafe for Frame
Blanket Implementations
Mutably borrows from an owned value. Read more