[][src]Struct web_sys::WebSocketElement

#[repr(transparent)]
pub struct WebSocketElement { /* fields omitted */ }

The WebSocketElement dictionary

This API requires the following crate features to be activated: WebSocketElement

Methods

impl WebSocketElement[src]

pub fn new() -> WebSocketElement[src]

Construct a new WebSocketElement

This API requires the following crate features to be activated: WebSocketElement

pub fn encrypted(&mut self, val: bool) -> &mut Self[src]

Configure the encrypted field of this object

This API requires the following crate features to be activated: WebSocketElement

pub fn hostport(&mut self, val: &str) -> &mut Self[src]

Configure the hostport field of this object

This API requires the following crate features to be activated: WebSocketElement

pub fn msgreceived(&mut self, val: u32) -> &mut Self[src]

Configure the msgreceived field of this object

This API requires the following crate features to be activated: WebSocketElement

pub fn msgsent(&mut self, val: u32) -> &mut Self[src]

Configure the msgsent field of this object

This API requires the following crate features to be activated: WebSocketElement

pub fn receivedsize(&mut self, val: f64) -> &mut Self[src]

Configure the receivedsize field of this object

This API requires the following crate features to be activated: WebSocketElement

pub fn sentsize(&mut self, val: f64) -> &mut Self[src]

Configure the sentsize field of this object

This API requires the following crate features to be activated: WebSocketElement

Trait Implementations

impl AsRef<JsValue> for WebSocketElement[src]

impl Clone for WebSocketElement[src]

impl Debug for WebSocketElement[src]

impl From<WebSocketElement> for JsValue[src]

impl FromWasmAbi for WebSocketElement[src]

type Abi = <Object as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for WebSocketElement[src]

type Abi = <Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a WebSocketElement[src]

type Abi = <&'a Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for WebSocketElement[src]

impl OptionFromWasmAbi for WebSocketElement[src]

impl OptionIntoWasmAbi for WebSocketElement[src]

impl<'a> OptionIntoWasmAbi for &'a WebSocketElement[src]

impl RefFromWasmAbi for WebSocketElement[src]

type Abi = <Object as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<WebSocketElement>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl WasmDescribe for WebSocketElement[src]

Auto Trait Implementations

impl RefUnwindSafe for WebSocketElement

impl !Send for WebSocketElement

impl !Sync for WebSocketElement

impl Unpin for WebSocketElement

impl UnwindSafe for WebSocketElement

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> From<T> for T[src]

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

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.