FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CancellationTokenRegistration

    struct · ferroui-system · v0.5.0

    struct CancellationTokenRegistration
    

    A callback registered with CancellationToken::register_handle; dropping it keeps the callback.

    View source

    Deprecated since 0.5.0. use CancellationGuard, from CancellationToken::register; detach() keeps the callback

    Members

    dispose

    fn dispose(self: &Self)
    

    Removes the callback so that it no longer runs on cancellation.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • From<CancellationTokenRegistration>

    Availability

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