pub struct WebSocketFrame {
pub fin: bool,
pub opcode: WebSocketFrameOpcode,
pub payload: Bytes,
}Fields§
§fin: bool§opcode: WebSocketFrameOpcode§payload: BytesTrait Implementations§
Source§impl Clone for WebSocketFrame
impl Clone for WebSocketFrame
Source§fn clone(&self) -> WebSocketFrame
fn clone(&self) -> WebSocketFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSocketFrame
impl Debug for WebSocketFrame
impl Eq for WebSocketFrame
Source§impl PartialEq for WebSocketFrame
impl PartialEq for WebSocketFrame
Source§fn eq(&self, other: &WebSocketFrame) -> bool
fn eq(&self, other: &WebSocketFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebSocketFrame
Auto Trait Implementations§
impl !Freeze for WebSocketFrame
impl RefUnwindSafe for WebSocketFrame
impl Send for WebSocketFrame
impl Sync for WebSocketFrame
impl Unpin for WebSocketFrame
impl UnsafeUnpin for WebSocketFrame
impl UnwindSafe for WebSocketFrame
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