pub trait AtomicDestroyer: Debug + Clone {
// Required method
fn on_destroy(&self);
}Expand description
Atomic destroyer
Required Methods§
Sourcefn on_destroy(&self)
fn on_destroy(&self)
Instructions to execute when all instances are dropped
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.