FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Deprecated since 0.5.0. use ferroui_system::task::Canceled, and Canceled::is_cancellation to 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, and Canceled::is_cancellation to recognize a cancellation

    Source

    is_cancellation

    fn is_cancellation(error: &ObservableError) -> bool
    

    Whether error is a cancellation: a Canceled or a TaskCanceledError (Canceled::is_cancellation).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Display
    • Error
    • From<Canceled>
    • From<TaskCanceledError>

    Availability

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