[−][src]Struct seed::virtual_dom::event_handler_manager::listener::Listener
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]
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>>>>
)
[src]
&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
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, 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>,