pub struct BarrierWaitResult { /* private fields */ }Expand description
Returned by Barrier::wait; tells the caller whether it was the one
call (per generation) whose arrival released everyone else. Purely
informational — every participant proceeds regardless.
Implementations§
Source§impl BarrierWaitResult
impl BarrierWaitResult
Sourcepub const fn is_leader(&self) -> bool
pub const fn is_leader(&self) -> bool
true for exactly one of the n Barrier::wait calls per
generation — the one whose arrival completed it.
Trait Implementations§
Source§impl Clone for BarrierWaitResult
impl Clone for BarrierWaitResult
Source§fn clone(&self) -> BarrierWaitResult
fn clone(&self) -> BarrierWaitResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BarrierWaitResult
Source§impl Debug for BarrierWaitResult
impl Debug for BarrierWaitResult
impl Eq for BarrierWaitResult
Source§impl PartialEq for BarrierWaitResult
impl PartialEq for BarrierWaitResult
impl StructuralPartialEq for BarrierWaitResult
Auto Trait Implementations§
impl Freeze for BarrierWaitResult
impl RefUnwindSafe for BarrierWaitResult
impl Send for BarrierWaitResult
impl Sync for BarrierWaitResult
impl Unpin for BarrierWaitResult
impl UnsafeUnpin for BarrierWaitResult
impl UnwindSafe for BarrierWaitResult
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