pub struct WaitGroupHandle { /* private fields */ }Expand description
A handle to a wait group that allows adding new wait guards.
Implementations§
Source§impl WaitGroupHandle
impl WaitGroupHandle
Sourcepub fn never() -> Self
pub fn never() -> Self
Create a new wait group handle that is not associated with any wait group.
Sourcepub fn is_waiting(&self) -> bool
pub fn is_waiting(&self) -> bool
Return whether the wait group is currently waiting.
Trait Implementations§
Source§impl Clone for WaitGroupHandle
impl Clone for WaitGroupHandle
Source§fn clone(&self) -> WaitGroupHandle
fn clone(&self) -> WaitGroupHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WaitGroupHandle
impl !RefUnwindSafe for WaitGroupHandle
impl Send for WaitGroupHandle
impl Sync for WaitGroupHandle
impl Unpin for WaitGroupHandle
impl !UnwindSafe for WaitGroupHandle
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