pub struct Barrier(/* private fields */);
Expand description
A blocking handle for a BarrierCondition
.
Implementations§
Source§impl Barrier
impl Barrier
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Barrier
which is not related to any other barrier.
A barrier can be cloned to create additional associated, blocking handles for the same condition.
Sourcepub fn get_condition(&self) -> BarrierCondition
pub fn get_condition(&self) -> BarrierCondition
Constructs a BarrierCondition
object which waits for this barrier handle and all of its associated handles
(created before or after this point) to be destroyed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Barrier
impl RefUnwindSafe for Barrier
impl !Send for Barrier
impl !Sync for Barrier
impl Unpin for Barrier
impl UnwindSafe for Barrier
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