pub struct WebSocketFrame {
pub direction: FrameDirection,
pub data: FrameData,
pub opcode: Option<i64>,
}Expand description
A single WebSocket frame payload, tagged with its direction.
Fields§
§direction: FrameDirectionDirection relative to the page.
data: FrameDataThe raw payload data. CDP distinguishes text and binary; for text frames this is the decoded string, for binary frames it is the raw bytes.
opcode: Option<i64>The opcode (1 = text, 2 = binary, 8 = close, 9 = ping, 10 = pong), when reported by CDP.
Trait 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 moreAuto 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