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".
Implementors§
impl LocalAsyncDrop for RBuffer
Available on crate feature
enable_async only.impl LocalAsyncDrop for WBuffer
Available on crate feature
enable_async only.