pub struct QueuedArrayCounter { /* private fields */ }Expand description
Tracks the number of queued (in-flight) arrays across non-blocking plugins. Used by drivers to perform a bounded wait at end of acquisition.
Implementations§
Source§impl QueuedArrayCounter
impl QueuedArrayCounter
Sourcepub fn wait_until_zero(&self, timeout: Duration) -> bool
pub fn wait_until_zero(&self, timeout: Duration) -> bool
Wait until count reaches zero, or timeout expires.
Returns true if count is zero, false on timeout.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QueuedArrayCounter
impl !RefUnwindSafe for QueuedArrayCounter
impl Send for QueuedArrayCounter
impl Sync for QueuedArrayCounter
impl Unpin for QueuedArrayCounter
impl UnsafeUnpin for QueuedArrayCounter
impl UnwindSafe for QueuedArrayCounter
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