pub struct Frame<'a> {
pub finished: bool,
pub opcode: OpCode,
pub payload: Payload<'a>,
}
Expand description
WebSocket frame.
Fields§
§finished: bool
Whether the frame is finished or not.
opcode: OpCode
Opcode of the WebSocket frame.
payload: Payload<'a>
Payload of the WebSocket frame.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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