Struct dioxus::prelude::EventHandler [−][src]
pub struct EventHandler<'bump> {
pub callback: &'bump RefCell<Option<Box<'bump, dyn FnMut(AnyEvent) + 'bump>>>,
}
Expand description
The callback based into element event listeners.
Fields
callback: &'bump RefCell<Option<Box<'bump, dyn FnMut(AnyEvent) + 'bump>>>
Implementations
Trait Implementations
Auto Trait Implementations
impl<'bump> !RefUnwindSafe for EventHandler<'bump>
impl<'bump> !Send for EventHandler<'bump>
impl<'bump> !Sync for EventHandler<'bump>
impl<'bump> Unpin for EventHandler<'bump>
impl<'bump> !UnwindSafe for EventHandler<'bump>
Blanket Implementations
Mutably borrows from an owned value. Read more