pub struct CheckGuard;Expand description
Installed by the dispatcher around one check’s run; clears this
thread’s slot state, and releases a held slot, when dropped.
Implementations§
Source§impl CheckGuard
impl CheckGuard
Sourcepub fn deferred(&self) -> Option<Duration>
pub fn deferred(&self) -> Option<Duration>
Whether the busy policy deferred this check, and after how long a wait. Read before the guard drops.
Sourcepub fn deferred_end(&self) -> Option<(WaitEnd, String)>
pub fn deferred_end(&self) -> Option<(WaitEnd, String)>
How the wait in line ended and why, when the check deferred on it: a caller that is not a hook check (the rehearsal worker) words its own error from it. Read before the guard drops.
Trait Implementations§
Source§impl Drop for CheckGuard
impl Drop for CheckGuard
Auto Trait Implementations§
impl Forget for CheckGuard
impl Freeze for CheckGuard
impl Move for CheckGuard
impl RefUnwindSafe for CheckGuard
impl Send for CheckGuard
impl Sync for CheckGuard
impl Unpin for CheckGuard
impl UnsafeUnpin for CheckGuard
impl UnwindSafe for CheckGuard
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