Struct hotdrink_wasm::event::js_event::JsEvent [−][src]
pub struct JsEvent<T, E> { /* fields omitted */ }
A wrapper around events that contains information about which variable was updated.
Implementations
impl<T, E> JsEvent<T, E>
[src]
impl<T, E> JsEvent<T, E>
[src]pub fn new(
component: String,
variable: String,
data: JsEventInner<T, E>
) -> Self
[src]
component: String,
variable: String,
data: JsEventInner<T, E>
) -> Self
Constructs a new JsEvent
with variable information and an event.
pub fn get_component(&self) -> &str
[src]
Returns the name of the component the event is from.
pub fn get_variable(&self) -> &str
[src]
Returns the name of the variable the event is about.
pub fn into_inner(self) -> JsEventInner<T, E>
[src]
Returns the event that happened.
Trait Implementations
Auto Trait Implementations
impl<T, E> RefUnwindSafe for JsEvent<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> RefUnwindSafe for JsEvent<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> UnwindSafe for JsEvent<T, E> where
E: UnwindSafe,
T: UnwindSafe,
impl<T, E> UnwindSafe for JsEvent<T, E> where
E: UnwindSafe,
T: UnwindSafe,