pub trait OnDropFutureExt: Future + Sized {
// Provided method
fn on_drop<F: FnOnce()>(self, on_drop: F) -> OnDropFuture<Self, F> ⓘ { ... }
}
Expand description
Trait adds future on_drop support
Provided Methods§
fn on_drop<F: FnOnce()>(self, on_drop: F) -> OnDropFuture<Self, F> ⓘ
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.