Struct raft_engine::internals::WriteBarrier
source · 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> !RefUnwindSafe for WriteBarrier<P, O>
impl<P, O> Send for WriteBarrier<P, O>where O: Send, P: Send,
impl<P, O> Sync for WriteBarrier<P, O>where O: Send, P: Send,
impl<P, O> Unpin for WriteBarrier<P, O>
impl<P, O> !UnwindSafe 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