Trait vector_common::finalization::Finalizable
source · pub trait Finalizable {
// Required method
fn take_finalizers(&mut self) -> EventFinalizers;
}
Expand description
An object that can be finalized.
Required Methods§
sourcefn take_finalizers(&mut self) -> EventFinalizers
fn take_finalizers(&mut self) -> EventFinalizers
Consumes the finalizers of this object.
Typically used for coalescing the finalizers of multiple items, such as when batching finalizable objects where all finalizations will be processed when the batch itself is processed.