FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CancellationDisposable

    struct · ferroui-reactive · v0.5.0

    struct CancellationDisposable
    

    A disposable that cancels a cancellation token when it is disposed (CancellationDisposable).

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    A disposable over a new cancellation token.

    Source

    with_token

    fn with_token(token: CancellationToken) -> Rc<Self>
    

    A disposable that cancels token when it is disposed (CancellationDisposable(cts)).

    Source

    with_source

    fn with_source(source: ferroui_system::threading::CancellationTokenSource) -> Rc<Self>
    

    A disposable that cancels source when it is disposed.

    Deprecated since 0.5.0. use with_token, with a CancellationToken::new() in the place of the source

    Source

    token

    fn token(self: &Self) -> CancellationToken
    

    The token that disposing cancels (a clone of it).

    Source

    Trait implementations

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

    Availability

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