[][src]Struct seed::dom_types::Listener

pub struct Listener<Ms: Clone> {
    pub trigger: String,
    pub handler: Option<Box<dyn FnMut(Event) -> Ms>>,
    pub closure: Option<Closure<dyn FnMut(Event)>>,
}

Event-handling for Elements

Fields

Methods

impl<Ms: Clone + 'static> Listener<Ms>
[src]

This method is where the processing logic for events happens.

Trait Implementations

impl<Ms: Clone> UpdateEl<El<Ms>> for Listener<Ms>
[src]

impl<Ms: Clone + 'static> PartialEq<Listener<Ms>> for Listener<Ms>
[src]

This method tests for !=.

Auto Trait Implementations

impl<Ms> !Send for Listener<Ms>

impl<Ms> !Sync for Listener<Ms>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]