FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnimationTask

    struct · ferroui-base · v0.5.0

    struct AnimationTask
    

    The pending or completed result of running an animation or a page transition.

    It completes with Ok when the animation has ended or was cancelled, and with an error when the animation could not be run.

    View source

    Members

    completed

    fn completed() -> Self
    

    A successfully completed task.

    Source

    is_completed

    fn is_completed(self: &Self) -> bool
    

    Whether the task has completed, successfully or not.

    Source

    result

    fn result(self: &Self) -> Option<Result<(), AnimationError>>
    

    The result of the task; None while it is pending.

    Source

    on_completed

    fn on_completed(self: &Self, continuation: impl FnOnce() -> () + 'static)
    

    Runs continuation when the task completes; immediately if it has completed already.

    Source

    when_all

    fn when_all(tasks: impl IntoIterator<Item = AnimationTask>) -> AnimationTask
    

    A task that completes when all of tasks have completed: with the first error among them, if any.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IntoFuture
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default
    • Future

    Availability

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