pub struct Frame {
pub finished: bool,
pub opcode: OpCode,
pub payload: Bytes,
}Expand description
WebSocket frame.
Fields§
§finished: boolWhether the frame is finished or not.
opcode: OpCodeOpcode of the WebSocket frame.
payload: BytesPayload 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