[]Struct augdom::event::MessageError

pub struct MessageError(_);

A message error is raised when a message is received by an object. MDN documentation

Methods from Deref<Target = MessageEvent>

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

Getter for the data field of this object.

MDN Documentation

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

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

Getter for the origin field of this object.

MDN Documentation

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

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

Getter for the lastEventId field of this object.

MDN Documentation

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

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

Getter for the source field of this object.

MDN Documentation

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

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

Getter for the ports field of this object.

MDN Documentation

This API requires the following crate features to be activated: 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

Trait Implementations

impl AsRef<Event> for MessageError[src]

impl AsRef<JsValue> for MessageError[src]

impl Deref for MessageError[src]

type Target = MessageEvent

The resulting type after dereferencing.

impl Event for MessageError[src]

impl From<MessageError> for JsValue[src]

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

type Abi = u32

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

impl JsCast for MessageError[src]

impl OptionFromWasmAbi for MessageError[src]

impl OptionIntoWasmAbi for MessageError[src]

impl RefFromWasmAbi for MessageError[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, MessageError>

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 RefMutFromWasmAbi for MessageError[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, MessageError>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for MessageError[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageError

impl !Send for MessageError

impl !Sync for MessageError

impl Unpin for MessageError

impl UnwindSafe for MessageError

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, 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.