Struct chrome_remote_interface_model::network::WebSocketFrame [−][src]
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]
fn clone(&self) -> WebSocketFrame
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebSocketFrame
[src]
impl<'de> Deserialize<'de> for WebSocketFrame
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for WebSocketFrame
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebSocketFrame
[src]
impl Send for WebSocketFrame
[src]
impl Sync for WebSocketFrame
[src]
impl Unpin for WebSocketFrame
[src]
impl UnwindSafe for WebSocketFrame
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,