pub struct StandardSingleStore(/* private fields */);Implementations§
Source§impl StandardSingleStore
impl StandardSingleStore
pub fn testing_memory() -> Self
pub fn testing_memory_with_eventbus(event_bus: EventBus) -> Self
Trait Implementations§
Source§impl Clone for StandardSingleStore
impl Clone for StandardSingleStore
Source§fn clone(&self) -> StandardSingleStore
fn clone(&self) -> StandardSingleStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Deref for StandardSingleStore
impl Deref for StandardSingleStore
Source§impl SingleVersionGet for StandardSingleStore
impl SingleVersionGet for StandardSingleStore
Source§fn get(&self, key: &EncodedKey) -> Result<Option<SingleVersionValues>>
fn get(&self, key: &EncodedKey) -> Result<Option<SingleVersionValues>>
Get the value for a key.
Source§impl SingleVersionRange for StandardSingleStore
impl SingleVersionRange for StandardSingleStore
Source§fn range_batch(
&self,
range: EncodedKeyRange,
batch_size: u64,
) -> Result<SingleVersionBatch>
fn range_batch( &self, range: EncodedKeyRange, batch_size: u64, ) -> Result<SingleVersionBatch>
Fetch a batch of values in key order (ascending).
Source§fn range(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
fn range(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
Convenience method with default batch size.
Source§fn prefix(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
fn prefix(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
Range query with prefix.
Source§impl SingleVersionRangeRev for StandardSingleStore
impl SingleVersionRangeRev for StandardSingleStore
Source§fn range_rev_batch(
&self,
range: EncodedKeyRange,
batch_size: u64,
) -> Result<SingleVersionBatch>
fn range_rev_batch( &self, range: EncodedKeyRange, batch_size: u64, ) -> Result<SingleVersionBatch>
Fetch a batch of values in reverse key order (descending).
Source§fn range_rev(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
fn range_rev(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
Convenience method with default batch size.
Source§fn prefix_rev(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
fn prefix_rev(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
Reverse range query with prefix.
Source§impl SingleVersionRemove for StandardSingleStore
impl SingleVersionRemove for StandardSingleStore
Source§fn unset(
&mut self,
key: &EncodedKey,
values: EncodedValues,
) -> Result<(), Error>
fn unset( &mut self, key: &EncodedKey, values: EncodedValues, ) -> Result<(), Error>
Unset a key, preserving the deleted values for CDC and metrics.
Source§impl SingleVersionSet for StandardSingleStore
impl SingleVersionSet for StandardSingleStore
Source§fn set(&mut self, key: &EncodedKey, values: EncodedValues) -> Result<(), Error>
fn set(&mut self, key: &EncodedKey, values: EncodedValues) -> Result<(), Error>
Set a value for a key.
impl SingleVersionStore for StandardSingleStore
Auto Trait Implementations§
impl Freeze for StandardSingleStore
impl !RefUnwindSafe for StandardSingleStore
impl Send for StandardSingleStore
impl Sync for StandardSingleStore
impl Unpin for StandardSingleStore
impl UnsafeUnpin for StandardSingleStore
impl !UnwindSafe for StandardSingleStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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