[]Struct augdom::event::WorkerMessage

pub struct WorkerMessage(_);

A message is received from a Web Worker. MDN documentation

Methods from Deref<Target = MessageEvent>

pub fn init_message_event(&self, type_: &str)[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles(&self, type_: &str, bubbles: bool)[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles_and_cancelable(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool
)
[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles_and_cancelable_and_data(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool,
    data: &JsValue
)
[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool,
    data: &JsValue,
    origin: &str
)
[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool,
    data: &JsValue,
    origin: &str,
    last_event_id: &str
)
[src]

The initMessageEvent() method

MDN Documentation

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

pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool,
    data: &JsValue,
    origin: &str,
    last_event_id: &str,
    source: Option<&Window>
)
[src]

The initMessageEvent() method

MDN Documentation

This API requires the following crate features to be activated: MessageEvent, Window

pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window_and_ports(
    &self,
    type_: &str,
    bubbles: bool,
    cancelable: bool,
    data: &JsValue,
    origin: &str,
    last_event_id: &str,
    source: Option<&Window>,
    ports: &JsValue
)
[src]

The initMessageEvent() method

MDN Documentation

This API requires the following crate features to be activated: MessageEvent, Window

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

The data getter

MDN Documentation

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

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

The origin getter

MDN Documentation

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

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

The lastEventId getter

MDN Documentation

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

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

The source getter

MDN Documentation

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

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

The ports getter

MDN Documentation

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

Trait Implementations

impl Event for WorkerMessage[src]

impl AsRef<Event> for WorkerMessage[src]

impl AsRef<JsValue> for WorkerMessage[src]

impl From<WorkerMessage> for JsValue[src]

impl Deref for WorkerMessage[src]

type Target = MessageEvent

The resulting type after dereferencing.

impl RefFromWasmAbi for WorkerMessage[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, WorkerMessage>

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 FromWasmAbi for WorkerMessage[src]

type Abi = u32

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

impl IntoWasmAbi for WorkerMessage[src]

type Abi = u32

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

impl WasmDescribe for WorkerMessage[src]

impl OptionFromWasmAbi for WorkerMessage[src]

impl OptionIntoWasmAbi for WorkerMessage[src]

impl RefMutFromWasmAbi for WorkerMessage[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, WorkerMessage>

Same as RefFromWasmAbi::Anchor

impl JsCast for WorkerMessage[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi