pub struct StoppedGate { /* private fields */ }Expand description
Test/prod gate that defers the supervisor’s Stopped transition until
StoppedGate::release (v2 §22.5 TimedOut determinism).
Uses watch so a release that races ahead of the waiter is not lost
(unlike Notify, which can miss a wakeup between check and await).
Implementations§
Source§impl StoppedGate
impl StoppedGate
Sourcepub async fn wait_released(&self)
pub async fn wait_released(&self)
Wait until Self::release has been called.
Trait Implementations§
Source§impl Debug for StoppedGate
impl Debug for StoppedGate
Auto Trait Implementations§
impl Freeze for StoppedGate
impl RefUnwindSafe for StoppedGate
impl Send for StoppedGate
impl Sync for StoppedGate
impl Unpin for StoppedGate
impl UnsafeUnpin for StoppedGate
impl UnwindSafe for StoppedGate
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