pub struct FinalizerHoldGate { /* private fields */ }Expand description
Test-only gate that pauses the Finalizer between Seal and completion send (§22.2).
Proves shutdown / hard-grace cannot drop the ledger row or the one completion attempt while Seal has already run.
Implementations§
Source§impl FinalizerHoldGate
impl FinalizerHoldGate
Sourcepub fn new() -> Self
pub fn new() -> Self
New gate; Finalizer blocks after Seal until Self::release.
Sourcepub async fn wait_released(&self)
pub async fn wait_released(&self)
Wait until release (used by Finalizer).
Trait Implementations§
Source§impl Debug for FinalizerHoldGate
impl Debug for FinalizerHoldGate
Auto Trait Implementations§
impl !Freeze for FinalizerHoldGate
impl RefUnwindSafe for FinalizerHoldGate
impl Send for FinalizerHoldGate
impl Sync for FinalizerHoldGate
impl Unpin for FinalizerHoldGate
impl UnsafeUnpin for FinalizerHoldGate
impl UnwindSafe for FinalizerHoldGate
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