pub struct AnyExt<A: CleanAny> { /* private fields */ }Expand description
An extension wrapper for CleanAny databases that provides a traditional mutable key-value store interface by internally handling Clean/Dirty state transitions.
Implementations§
Trait Implementations§
Source§impl<A> LogStore for AnyExt<A>where
A: CleanAny,
impl<A> LogStore for AnyExt<A>where
A: CleanAny,
type Value = <A as LogStore>::Value
Source§fn op_count(&self) -> Location
fn op_count(&self) -> Location
The number of operations that have been applied to this db, including those that have been
pruned and those that are not yet committed.
Source§fn inactivity_floor_loc(&self) -> Location
fn inactivity_floor_loc(&self) -> Location
Return the inactivity floor location. This is the location before which all operations are
known to be inactive. Operations before this point can be safely pruned.
Source§impl<A> LogStorePrunable for AnyExt<A>where
A: CleanAny,
impl<A> LogStorePrunable for AnyExt<A>where
A: CleanAny,
Source§impl<A> StoreDeletable for AnyExt<A>where
A: CleanAny,
impl<A> StoreDeletable for AnyExt<A>where
A: CleanAny,
Source§impl<A> StoreMut for AnyExt<A>where
A: CleanAny,
impl<A> StoreMut for AnyExt<A>where
A: CleanAny,
Source§async fn update(
&mut self,
key: Self::Key,
value: Self::Value,
) -> Result<(), Self::Error>
async fn update( &mut self, key: Self::Key, value: Self::Value, ) -> Result<(), Self::Error>
Update the value of a key.
Auto Trait Implementations§
impl<A> Freeze for AnyExt<A>
impl<A> RefUnwindSafe for AnyExt<A>
impl<A> Send for AnyExt<A>
impl<A> Sync for AnyExt<A>
impl<A> Unpin for AnyExt<A>
impl<A> UnwindSafe for AnyExt<A>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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