Struct seed::virtual_dom::event_handler_manager::event_handler::EventHandler
source · [−]Expand description
EventHandler
s are called by DOM event listeners with the same trigger (an event to listen to).
Fields
trigger: Ev
callback: Rc<dyn Fn(Event) -> Option<Ms>>
Implementations
Trait Implementations
sourceimpl<Ms> Clone for EventHandler<Ms>
impl<Ms> Clone for EventHandler<Ms>
sourceimpl<Ms> Debug for EventHandler<Ms>
impl<Ms> Debug for EventHandler<Ms>
sourceimpl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for EventHandler<Ms>
impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for EventHandler<Ms>
type SelfWithOtherMs = EventHandler<OtherMs>
fn map_msg(
self,
msg_mapper: impl FnOnce(Ms) -> OtherMs + 'static + Clone
) -> EventHandler<OtherMs>
Auto Trait Implementations
impl<Ms> !RefUnwindSafe for EventHandler<Ms>
impl<Ms> !Send for EventHandler<Ms>
impl<Ms> !Sync for EventHandler<Ms>
impl<Ms> Unpin for EventHandler<Ms>
impl<Ms> !UnwindSafe for EventHandler<Ms>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more