FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(due_time: T, action: ScheduledAction) -> Rc<Self>
    

    Source

    due_time

    fn due_time(self: &Self) -> T
    

    The time the work is due.

    Source

    is_canceled

    fn is_canceled(self: &Self) -> bool
    

    Whether the work was cancelled.

    Source

    invoke

    fn invoke(self: &Self, scheduler: &Rc<dyn IScheduler>)
    

    Runs the work on scheduler unless it was cancelled or has run.

    Source

    cancel

    fn cancel(self: &Self)
    

    Cancels the work (Cancel).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IDisposable
    • ICancelable

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.