pub trait IAsyncDisposable {
// Required method
fn dispose_async(&self) -> Task<()> ⓘ;
}Expand description
An object whose disposal ends later (IAsyncDisposable).
Required Methods§
Sourcefn dispose_async(&self) -> Task<()> ⓘ
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".