[−][src]Struct seed::virtual_dom::event_handler_manager::event_handler::EventHandler
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) -> Ms>
Methods
impl<Ms> EventHandler<Ms>
[src]
Trait Implementations
impl<Ms> Clone for EventHandler<Ms>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Ms> Debug for EventHandler<Ms>
[src]
impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for EventHandler<Ms>
[src]
type SelfWithOtherMs = EventHandler<OtherMs>
fn map_msg(
self,
msg_mapper: impl FnOnce(Ms) -> OtherMs + 'static + Clone
) -> EventHandler<OtherMs>
[src]
self,
msg_mapper: impl FnOnce(Ms) -> OtherMs + 'static + Clone
) -> EventHandler<OtherMs>
impl<Ms> UpdateEl<El<Ms>> for EventHandler<Ms>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,