Canceled
struct · ferroui-system · v0.5.0
struct Canceled
The error of an outcome that will never come: the sender of a oneshot
channel was dropped without sending.
It is the one cancellation error of the workspace (docs/idiomatic-rust-async.md, section 3.7):
the error of a canceled dispatcher operation, of an awaited token, and of the futures of the
reactive libraries that their token stops. OperationCanceledError (ferroui-base) and
TaskCanceledError (threading::tasks), the error of a canceled Task that names it, both
deprecated, convert to and from it (From); Canceled::is_cancellation recognizes both.
Members
is_cancellation
fn is_cancellation(error: &crate::ObservableError) -> bool
Whether error is a cancellation: a Canceled, or the deprecated TaskCanceledError of
a canceled Task (OperationCanceledException and TaskCanceledException caught as such).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashDisplayErrorFrom<Canceled>From<TaskCanceledError>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.