pub trait AsyncDrop {
type Dropper<'a>: Future<Output = ()>
where Self: 'a;
// Required method
fn async_drop(self: Pin<&mut Self>) -> Self::Dropper<'_>;
}
🔬This is a nightly-only experimental API. (
async_drop
#126482)Expand description
Custom code within the asynchronous destructor.
Required Associated Types§
Required Methods§
sourcefn async_drop(self: Pin<&mut Self>) -> Self::Dropper<'_>
🔬This is a nightly-only experimental API. (async_drop
#126482)
fn async_drop(self: Pin<&mut Self>) -> Self::Dropper<'_>
async_drop
#126482)Constructs the asynchronous destructor for this type.
Object Safety§
This trait is not object safe.