JoinError
enum · ferroui-system · v0.5.0
enum JoinError
Why a task ended without the output of its future.
Members
Canceled
Canceled
The task was aborted (JoinHandle::abort): its future was dropped.
Panicked
Panicked(Box<dyn Any + Send>)
The future of the task panicked: the payload of the panic (for a Shared task, its
message as a String).
is_canceled
fn is_canceled(self: &Self) -> bool
Whether the task was aborted.
is_panic
fn is_panic(self: &Self) -> bool
Whether the future of the task panicked.
into_panic
fn into_panic(self: Self) -> Box<dyn Any + Send>
The payload of the panic.
Panics
When the task was aborted; try_into_panic does not.
try_into_panic
fn try_into_panic(self: Self) -> Result<Box<dyn Any + Send>, JoinError>
The payload of the panic, or the error itself when the task was aborted.
resume_unwind
fn resume_unwind(self: Self) -> never
Raises the panic of the task again on the calling thread, or panics with the error when the task was aborted.
to_observable_error
fn to_observable_error(self: &Self) -> ObservableError
The error in the error path of the reactive libraries (ObservableError): an abort is
Canceled, a panic a TaskWorkError with its message (the fault of a
task whose async method threw).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyToStringDebugDisplayError
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.