Trait tracing_core::stdlib::future::AsyncDrop
source · 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
)Expand description
Custom code within the asynchronous destructor.
Required Associated Types§
sourcetype Dropper<'a>: Future<Output = ()>
where
Self: 'a
🔬This is a nightly-only experimental API. (async_drop
)
type Dropper<'a>: Future<Output = ()> where Self: 'a
async_drop
)A future returned by the AsyncDrop::async_drop
to be part
of the async destructor.
Required Methods§
sourcefn async_drop(self: Pin<&mut Self>) -> Self::Dropper<'_>
🔬This is a nightly-only experimental API. (async_drop
)
fn async_drop(self: Pin<&mut Self>) -> Self::Dropper<'_>
async_drop
)Constructs the asynchronous destructor for this type.
Object Safety§
This trait is not object safe.