pub struct FinalizationState {
pub registrations: Vec<Registration>,
pub cleanup: Value,
}Expand description
The mutable half of a FinalizationRegistry.
Boxed inside the ObjectKind variant because it holds a vector plus a value, and every
ObjectKind is stored inline in the object header — an unboxed field this wide would
make every object in the realm that much larger.
Fields§
§registrations: Vec<Registration>One entry per successful register call.
cleanup: ValueThe cleanup callback, validated as callable when the registry was built.
Auto Trait Implementations§
impl !RefUnwindSafe for FinalizationState
impl !Send for FinalizationState
impl !Sync for FinalizationState
impl !UnwindSafe for FinalizationState
impl Forget for FinalizationState
impl Freeze for FinalizationState
impl Move for FinalizationState
impl Unpin for FinalizationState
impl UnsafeUnpin for FinalizationState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more