Struct dioxus_core::UiEvent
source · [−]pub struct UiEvent<T> {
pub data: Arc<T>,
/* private fields */
}
Expand description
A UiEvent is a type that wraps various EventData.
You should prefer to use the name of the event directly, rather than
the UiEvent
For the HTML crate, this would include [MouseEvent
], [FormEvent
] etc.
Fields
data: Arc<T>
The internal data of the event This is wrapped in an Arc so that it can be sent across threads
Implementations
sourceimpl<T> UiEvent<T>
impl<T> UiEvent<T>
sourcepub fn cancel_bubble(&self)
pub fn cancel_bubble(&self)
Prevent this event from bubbling up the tree.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for UiEvent<T>
impl<T> !Send for UiEvent<T>
impl<T> !Sync for UiEvent<T>
impl<T> Unpin for UiEvent<T>
impl<T> !UnwindSafe for UiEvent<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more