Struct seed::virtual_dom::event_handler_manager::listener::Listener
source · [−]pub struct Listener<Ms> { /* private fields */ }
Expand description
Represents attached DOM event listener with the callback that calls event handlers.
Implementations
sourceimpl<Ms> Listener<Ms>
impl<Ms> Listener<Ms>
sourcepub fn new(
trigger: Ev,
event_target: EventTarget,
event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>,
mailbox: Mailbox<Ms>
) -> Self
pub fn new(
trigger: Ev,
event_target: EventTarget,
event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>,
mailbox: Mailbox<Ms>
) -> Self
Create a new listener and attach it to the element.
pub fn set_event_handlers(
&self,
event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>
)
Trait Implementations
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
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