Struct chrome_remote_interface_model::network::WebSocketFrame[][src]

pub struct WebSocketFrame { /* fields omitted */ }
This is supported on crate features Network and Debugger and Runtime and Security only.

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

Implementations

impl WebSocketFrame[src]

pub fn new(opcode: f64, mask: bool, payload_data: String) -> Self[src]

pub fn opcode(&self) -> f64[src]

WebSocket message opcode.

pub fn mask(&self) -> bool[src]

WebSocket message mask.

pub fn payload_data(&self) -> &str[src]

WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.

Trait Implementations

impl Clone for WebSocketFrame[src]

impl Debug for WebSocketFrame[src]

impl<'de> Deserialize<'de> for WebSocketFrame[src]

impl Serialize for WebSocketFrame[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.