[−]Struct augdom::event::EventSourceMessage
A message is received through an event source. MDN documentation
Methods from Deref<Target = MessageEvent>
pub fn init_message_event(&self, type_: &str)
[src]
The initMessageEvent()
method
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
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool
)
The initMessageEvent()
method
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool,
data: &JsValue
)
The initMessageEvent()
method
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool,
data: &JsValue,
origin: &str
)
The initMessageEvent()
method
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool,
data: &JsValue,
origin: &str,
last_event_id: &str
)
The initMessageEvent()
method
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool,
data: &JsValue,
origin: &str,
last_event_id: &str,
source: Option<&Window>
)
The initMessageEvent()
method
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]
&self,
type_: &str,
bubbles: bool,
cancelable: bool,
data: &JsValue,
origin: &str,
last_event_id: &str,
source: Option<&Window>,
ports: &JsValue
)
The initMessageEvent()
method
This API requires the following crate features to be activated: MessageEvent
, Window
pub fn data(&self) -> JsValue
[src]
The data
getter
This API requires the following crate features to be activated: MessageEvent
pub fn origin(&self) -> String
[src]
The origin
getter
This API requires the following crate features to be activated: MessageEvent
pub fn last_event_id(&self) -> String
[src]
The lastEventId
getter
This API requires the following crate features to be activated: MessageEvent
pub fn source(&self) -> Option<Object>
[src]
The source
getter
This API requires the following crate features to be activated: MessageEvent
pub fn ports(&self) -> Array
[src]
The ports
getter
This API requires the following crate features to be activated: MessageEvent
Trait Implementations
impl Event for EventSourceMessage
[src]
impl AsRef<Event> for EventSourceMessage
[src]
impl AsRef<JsValue> for EventSourceMessage
[src]
impl From<EventSourceMessage> for JsValue
[src]
fn from(value: EventSourceMessage) -> Self
[src]
impl Deref for EventSourceMessage
[src]
type Target = MessageEvent
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl RefFromWasmAbi for EventSourceMessage
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
type Anchor = Ref<'static, EventSourceMessage>
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
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl FromWasmAbi for EventSourceMessage
[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: u32) -> Self
[src]
impl IntoWasmAbi for EventSourceMessage
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> u32
[src]
impl WasmDescribe for EventSourceMessage
[src]
impl OptionFromWasmAbi for EventSourceMessage
[src]
impl OptionIntoWasmAbi for EventSourceMessage
[src]
impl RefMutFromWasmAbi for EventSourceMessage
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, EventSourceMessage>
Same as RefFromWasmAbi::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl JsCast for EventSourceMessage
[src]
fn instanceof(val: &JsValue) -> bool
[src]
fn unchecked_from_js(val: JsValue) -> Self
[src]
fn unchecked_from_js_ref(_val: &JsValue) -> &Self
[src]
fn has_type<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast,
[src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast,
[src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast,
[src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool
[src]
Auto Trait Implementations
impl !Send for EventSourceMessage
impl !Sync for EventSourceMessage
impl Unpin for EventSourceMessage
impl UnwindSafe for EventSourceMessage
impl RefUnwindSafe for EventSourceMessage
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi