pub struct FocusIn;Available on crate feature
event only.Expand description
Safe wrapper for adding event listeners for events of type “focusin”.
Trait Implementations§
source§impl EventType for FocusIn
impl EventType for FocusIn
§type Data = FocusEvent
type Data = FocusEvent
Data of an event’s occurence, passed to the listener.
source§fn add_listener(&self, target: &EventTarget) -> Listener<Self::Data>
fn add_listener(&self, target: &EventTarget) -> Listener<Self::Data>
Adds event listeners to JS’s event targets, where events are of this
event type. This function is asynchronous and a future is returned. Read more
source§fn add_listener_with_sync_cb<F, T>(
&self,
target: &EventTarget,
callback: F
) -> Listener<T>where
F: FnMut(Self::Data) -> T + 'static,
T: 'static,
fn add_listener_with_sync_cb<F, T>( &self, target: &EventTarget, callback: F ) -> Listener<T>where F: FnMut(Self::Data) -> T + 'static, T: 'static,
Adds event listeners to JS’s event targets, where events are of this
event type, using synchronous event listeners. However, this function is
asynchronous and a future is returned. Read more
source§fn add_listener_with_async_cb<F, A>(
&self,
target: &EventTarget,
callback: F
) -> Listener<A::Output>where
F: FnMut(Self::Data) -> A + 'static,
A: Future + 'static,
fn add_listener_with_async_cb<F, A>( &self, target: &EventTarget, callback: F ) -> Listener<A::Output>where F: FnMut(Self::Data) -> A + 'static, A: Future + 'static,
Adds event listeners to JS’s event targets, where events are of this
event type, using asynchronous event listeners. This function is
asynchronous and a future is returned. Read more
impl Copy for FocusIn
Auto Trait Implementations§
impl RefUnwindSafe for FocusIn
impl Send for FocusIn
impl Sync for FocusIn
impl Unpin for FocusIn
impl UnwindSafe for FocusIn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more