pub struct Frame {
pub finished: bool,
pub opcode: OpCode,
pub payload: Bytes,
}
Expand description
WebSocket frame.
Fields§
§finished: bool
Whether the frame is finished or not.
opcode: OpCode
Opcode of the WebSocket frame.
payload: Bytes
Payload of the WebSocket frame.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more