[][src]Struct seed::virtual_dom::event_handler_manager::listener::Listener

pub struct Listener<Ms> { /* fields omitted */ }

Represents attached DOM event listener with the callback that calls event handlers.

Methods

impl<Ms> Listener<Ms>[src]

pub fn new(
    trigger: Ev,
    event_target: EventTarget,
    event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>,
    mailbox: Mailbox<Ms>
) -> Self
[src]

Create a new listener and attach it to the element.

pub fn set_event_handlers(
    &self,
    event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>
)
[src]

Trait Implementations

impl<Ms> Debug for Listener<Ms>[src]

impl<Ms> Drop for Listener<Ms>[src]

Auto Trait Implementations

impl<Ms> !RefUnwindSafe for Listener<Ms>

impl<Ms> !Send for Listener<Ms>

impl<Ms> !Sync for Listener<Ms>

impl<Ms> Unpin for Listener<Ms>

impl<Ms> !UnwindSafe for Listener<Ms>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.