ScheduledItem
struct · ferroui-reactive · v0.5.0
struct ScheduledItem<T>
Work scheduled for a due time (ScheduledItem<TAbsolute>). Disposing the item cancels it if it
has not run, and disposes what it started if it has.
Members
new
fn new(due_time: T, action: ScheduledAction) -> Rc<Self>
due_time
fn due_time(self: &Self) -> T
The time the work is due.
is_canceled
fn is_canceled(self: &Self) -> bool
Whether the work was cancelled.
invoke
fn invoke(self: &Self, scheduler: &Rc<dyn IScheduler>)
Runs the work on scheduler unless it was cancelled or has run.
cancel
fn cancel(self: &Self)
Cancels the work (Cancel).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyIDisposableICancelable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.