[][src]Struct web_sys::ExtendableMessageEvent

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

The ExtendableMessageEvent object

MDN Documentation

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

Methods

impl ExtendableMessageEvent[src]

pub fn new(type_: &str) -> Result<ExtendableMessageEvent, JsValue>[src]

The new ExtendableMessageEvent(..) constructor, creating a new instance of ExtendableMessageEvent

MDN Documentation

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

impl ExtendableMessageEvent[src]

pub fn new_with_event_init_dict(
    type_: &str,
    event_init_dict: &ExtendableMessageEventInit
) -> Result<ExtendableMessageEvent, JsValue>
[src]

The new ExtendableMessageEvent(..) constructor, creating a new instance of ExtendableMessageEvent

MDN Documentation

This API requires the following crate features to be activated: ExtendableMessageEvent, ExtendableMessageEventInit

impl ExtendableMessageEvent[src]

pub fn data(&self) -> JsValue[src]

The data getter

MDN Documentation

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

impl ExtendableMessageEvent[src]

pub fn origin(&self) -> String[src]

The origin getter

MDN Documentation

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

impl ExtendableMessageEvent[src]

pub fn last_event_id(&self) -> String[src]

The lastEventId getter

MDN Documentation

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

impl ExtendableMessageEvent[src]

pub fn source(&self) -> Option<Object>[src]

The source getter

MDN Documentation

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

impl ExtendableMessageEvent[src]

pub fn ports(&self) -> Array[src]

The ports getter

MDN Documentation

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

Methods from Deref<Target = ExtendableEvent>

pub fn wait_until(&self, p: &Promise) -> Result<(), JsValue>[src]

The waitUntil() method

MDN Documentation

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

Trait Implementations

impl AsRef<Event> for ExtendableMessageEvent[src]

impl AsRef<ExtendableEvent> for ExtendableMessageEvent[src]

impl AsRef<ExtendableMessageEvent> for ExtendableMessageEvent[src]

impl AsRef<JsValue> for ExtendableMessageEvent[src]

impl AsRef<Object> for ExtendableMessageEvent[src]

impl Clone for ExtendableMessageEvent[src]

impl Debug for ExtendableMessageEvent[src]

impl Deref for ExtendableMessageEvent[src]

type Target = ExtendableEvent

The resulting type after dereferencing.

impl Eq for ExtendableMessageEvent[src]

impl From<ExtendableMessageEvent> for JsValue[src]

impl From<ExtendableMessageEvent> for ExtendableEvent[src]

impl From<ExtendableMessageEvent> for Event[src]

impl From<ExtendableMessageEvent> for Object[src]

impl From<JsValue> for ExtendableMessageEvent[src]

impl FromWasmAbi for ExtendableMessageEvent[src]

type Abi = <JsValue as FromWasmAbi>::Abi

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

impl IntoWasmAbi for ExtendableMessageEvent[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

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

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

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

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

impl JsCast for ExtendableMessageEvent[src]

impl OptionFromWasmAbi for ExtendableMessageEvent[src]

impl OptionIntoWasmAbi for ExtendableMessageEvent[src]

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

impl PartialEq<ExtendableMessageEvent> for ExtendableMessageEvent[src]

impl RefFromWasmAbi for ExtendableMessageEvent[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<ExtendableMessageEvent>

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 StructuralEq for ExtendableMessageEvent[src]

impl StructuralPartialEq for ExtendableMessageEvent[src]

impl WasmDescribe for ExtendableMessageEvent[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> 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.