Skip to main content

IAsyncDisposable

Trait IAsyncDisposable 

Source
pub trait IAsyncDisposable {
    // Required method
    fn dispose_async(&self) -> Task<()> ⓘ;
}
Expand description

An object whose disposal ends later (IAsyncDisposable).

Required Methods§

Source

fn dispose_async(&self) -> Task<()> ⓘ

Starts the disposal and gives the task that ends with it; an error of the disposal faults the task (DisposeAsync).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§