Struct plaster::html::EventListenerHandle
source · pub struct EventListenerHandle { /* private fields */ }
Expand description
A handle to an event listener
Implementations
sourceimpl EventListenerHandle
impl EventListenerHandle
sourcepub fn new(
target: &EventTarget,
closure: Closure<dyn FnMut(Event)>,
type_: &str
) -> EventListenerHandle
pub fn new(
target: &EventTarget,
closure: Closure<dyn FnMut(Event)>,
type_: &str
) -> EventListenerHandle
Create a new EventListenerHandle with the target Element, the converted Closure, and the event type (ie. “onclick”).
Auto Trait Implementations
impl !RefUnwindSafe for EventListenerHandle
impl !Send for EventListenerHandle
impl !Sync for EventListenerHandle
impl Unpin for EventListenerHandle
impl !UnwindSafe for EventListenerHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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