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.
Members
completed
fn completed() -> Self
A successfully completed task.
is_completed
fn is_completed(self: &Self) -> bool
Whether the task has completed, successfully or not.
result
fn result(self: &Self) -> Option<Result<(), AnimationError>>
The result of the task; None while it is pending.
on_completed
fn on_completed(self: &Self, continuation: impl FnOnce() -> () + 'static)
Runs continuation when the task completes; immediately if it has
completed already.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyIntoFutureToOwnedErasedDestructorIntoEitherCloneDefaultFuture
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.