[−][src]Struct druid_shell::IdleHandle
A handle that can enqueue tasks on the window loop.
Implementations
impl IdleHandle[src]
pub fn add_idle<F>(&self, callback: F) where
F: FnOnce(&dyn Any) + Send + 'static, [src]
F: FnOnce(&dyn Any) + Send + 'static,
Add an idle handler, which is called (once) when the message loop is empty. The idle handler will be run from the main UI thread, and won't be scheduled if the associated view has been dropped.
Note: the name "idle" suggests that it will be scheduled with a lower priority than other UI events, but that's not necessarily the case.
pub fn schedule_idle(&mut self, token: IdleToken)[src]
Request a callback from the runloop. Your WinHander::idle method will
be called with the token that was passed in.
Trait Implementations
impl Clone for IdleHandle[src]
fn clone(&self) -> IdleHandle[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for IdleHandle
impl Send for IdleHandle
impl !Sync for IdleHandle
impl Unpin for IdleHandle
impl UnwindSafe for IdleHandle
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> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,