Struct druid_shell::IdleHandle [−][src]
pub struct IdleHandle(_);
Expand description
A handle that can enqueue tasks on the window loop.
Implementations
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.
Request a callback from the runloop. Your WinHander::idle
method will
be called with the token
that was passed in.
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more