#[repr(i32)]pub enum DomAction {
UnknownAction = -1,
SendEventReceivedFromJS = 0,
JsHasRegisteredAListener = 1,
JsHasRemovedAListener = 2,
}Expand description
Actions that can occur with DOM listeners While the renderer does receive the JS event, this is what we actually tell them after the enum was parsed.
Variants§
UnknownAction = -1
Used for error handling
SendEventReceivedFromJS = 0
A simple one time event was received from js
JsHasRegisteredAListener = 1
An event listener was registered in the DOM
JsHasRemovedAListener = 2
An event listener was unregistered from the DOM
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DomAction
impl<'de> Deserialize<'de> for DomAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for DomAction
impl Eq for DomAction
impl StructuralPartialEq for DomAction
Auto Trait Implementations§
impl Freeze for DomAction
impl RefUnwindSafe for DomAction
impl Send for DomAction
impl Sync for DomAction
impl Unpin for DomAction
impl UnwindSafe for DomAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more