pub struct SimpleOpHeadsStore { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Debug for SimpleOpHeadsStore
impl Debug for SimpleOpHeadsStore
Source§impl OpHeadsStore for SimpleOpHeadsStore
impl OpHeadsStore for SimpleOpHeadsStore
fn as_any(&self) -> &dyn Any
fn name(&self) -> &str
Source§fn update_op_heads(
&self,
old_ids: &[OperationId],
new_id: &OperationId,
) -> Result<(), OpHeadsStoreError>
fn update_op_heads( &self, old_ids: &[OperationId], new_id: &OperationId, ) -> Result<(), OpHeadsStoreError>
Remove the old op heads and add the new one. Read more
fn get_op_heads(&self) -> Result<Vec<OperationId>, OpHeadsStoreError>
Source§fn lock(&self) -> Result<Box<dyn OpHeadsStoreLock + '_>, OpHeadsStoreError>
fn lock(&self) -> Result<Box<dyn OpHeadsStoreLock + '_>, OpHeadsStoreError>
Optionally takes a lock on the op heads store. The purpose of the lock
is to prevent concurrent processes from resolving the same divergent
operations. It is not needed for correctness; implementations are free
to return a type that doesn’t hold a lock.
Auto Trait Implementations§
impl Freeze for SimpleOpHeadsStore
impl RefUnwindSafe for SimpleOpHeadsStore
impl Send for SimpleOpHeadsStore
impl Sync for SimpleOpHeadsStore
impl Unpin for SimpleOpHeadsStore
impl UnwindSafe for SimpleOpHeadsStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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