pub struct WriteBarrier<P, O> { /* private fields */ }Expand description
A synchronizer of Writers.
Implementations§
Source§impl<P, O> WriteBarrier<P, O>
impl<P, O> WriteBarrier<P, O>
Sourcepub fn enter<'a>(
&self,
writer: &'a mut Writer<P, O>,
) -> Option<WriteGroup<'_, 'a, P, O>>
pub fn enter<'a>( &self, writer: &'a mut Writer<P, O>, ) -> Option<WriteGroup<'_, 'a, P, O>>
Waits until the caller should perform some work. If writer has become
the leader of a set of writers, returns a WriteGroup that contains
them, writer included.
Trait Implementations§
Auto Trait Implementations§
impl<P, O> !Freeze for WriteBarrier<P, O>
impl<P, O> !RefUnwindSafe for WriteBarrier<P, O>
impl<P, O> !UnwindSafe for WriteBarrier<P, O>
impl<P, O> Send for WriteBarrier<P, O>
impl<P, O> Sync for WriteBarrier<P, O>
impl<P, O> Unpin for WriteBarrier<P, O>
impl<P, O> UnsafeUnpin for WriteBarrier<P, O>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more