pub trait LocalAsyncDrop:
Send
+ Sync
+ 'static {
// Required method
fn async_drop(&mut self) -> impl Future<Output = ()>;
}Expand description
An interface of the async_drop for async.
Required Methods§
Sourcefn async_drop(&mut self) -> impl Future<Output = ()>
fn async_drop(&mut self) -> impl Future<Output = ()>
Same as drop() but for async.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.