TaskCanceledError
struct · ferroui-system · v0.5.0
struct TaskCanceledError
The error of a canceled task that names it (TaskCanceledException with its Task).
A cancellation that names no task is Canceled, the one cancellation error of the workspace
(docs/idiomatic-rust-async.md, section 3.7), which the new types give.
Deprecated since 0.5.0. use
ferroui_system::task::Canceled, andCanceled::is_cancellationto recognize a cancellation
Members
task_id
task_id: Option<u64>
The id of the task, when the error names one (TaskCanceledException.Task).
Deprecated since 0.5.0. use
ferroui_system::task::Canceled, andCanceled::is_cancellationto recognize a cancellation
is_cancellation
fn is_cancellation(error: &ObservableError) -> bool
Whether error is a cancellation: a Canceled or a TaskCanceledError
(Canceled::is_cancellation).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringCloneDebugDefaultStructuralPartialEqPartialEqEqDisplayErrorFrom<Canceled>From<TaskCanceledError>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.