pub struct SimulatorGate { /* private fields */ }Expand description
A named checkpoint that a test explicitly releases.
Implementations§
Source§impl SimulatorGate
impl SimulatorGate
Sourcepub fn release(&self) -> bool
pub fn release(&self) -> bool
Releases every operation currently waiting at this checkpoint.
Returns true only for the transition from blocked to released.
Sourcepub fn reached_count(&self) -> usize
pub fn reached_count(&self) -> usize
Returns how many voluntary waits have reached this checkpoint.
Sourcepub fn is_released(&self) -> bool
pub fn is_released(&self) -> bool
Returns whether the test has released this checkpoint.
Trait Implementations§
Source§impl Clone for SimulatorGate
impl Clone for SimulatorGate
Auto Trait Implementations§
impl !RefUnwindSafe for SimulatorGate
impl !Send for SimulatorGate
impl !Sync for SimulatorGate
impl !UnwindSafe for SimulatorGate
impl Freeze for SimulatorGate
impl Unpin for SimulatorGate
impl UnsafeUnpin for SimulatorGate
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