FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    JoinError

    enum · ferroui-system · v0.5.0

    enum JoinError
    

    Why a task ended without the output of its future.

    View source

    Members

    Canceled

    Canceled
    

    The task was aborted (JoinHandle::abort): its future was dropped.

    Source

    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).

    Source

    is_canceled

    fn is_canceled(self: &Self) -> bool
    

    Whether the task was aborted.

    Source

    is_panic

    fn is_panic(self: &Self) -> bool
    

    Whether the future of the task panicked.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToString
    • Debug
    • Display
    • Error

    Availability

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