pub struct ManualFinalizerReceipt { /* private fields */ }Expand description
One-shot accounting token for a finalizer handed to an external driver.
The driver must execute or otherwise retire the associated Finalizer,
then pass this receipt to
RuntimeState::complete_manual_finalizer or
RuntimeState::abandon_manual_finalizer. Dropping an unsettled receipt is
fail-closed: the owning region remains in Finalizing, and no lower
finalizer can be handed out.
Implementations§
Source§impl ManualFinalizerReceipt
impl ManualFinalizerReceipt
Sourcepub const fn region_id(&self) -> RegionId
pub const fn region_id(&self) -> RegionId
Returns the region that owns the externally driven finalizer.
Sourcepub const fn finalizer_id(&self) -> u64
pub const fn finalizer_id(&self) -> u64
Returns the runtime-local identifier of the externally driven finalizer.
Sourcepub const fn is_settled(&self) -> bool
pub const fn is_settled(&self) -> bool
Returns whether this receipt has already been completed or abandoned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManualFinalizerReceipt
impl RefUnwindSafe for ManualFinalizerReceipt
impl Send for ManualFinalizerReceipt
impl Sync for ManualFinalizerReceipt
impl Unpin for ManualFinalizerReceipt
impl UnsafeUnpin for ManualFinalizerReceipt
impl UnwindSafe for ManualFinalizerReceipt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).