pub struct MemoryKv<T: Clone> { /* private fields */ }Expand description
In-memory typed KV tier with D108 opaque-generation support.
Implementations§
Trait Implementations§
Source§impl<T: Clone> KvStorageTier<T> for MemoryKv<T>
impl<T: Clone> KvStorageTier<T> for MemoryKv<T>
Source§fn put_if_absent(&self, key: &str, value: T) -> StorageResult<bool>
fn put_if_absent(&self, key: &str, value: T) -> StorageResult<bool>
Updates or reads
put_if_absent.Source§fn supports_versioned(&self) -> bool
fn supports_versioned(&self) -> bool
Updates or reads
supports_versioned.Source§fn get_versioned(&self, key: &str) -> StorageResult<KvVersionedRead<T>>
fn get_versioned(&self, key: &str) -> StorageResult<KvVersionedRead<T>>
Updates or reads
get_versioned.Source§fn set_if_match(
&self,
key: &str,
value: T,
generation: &KvGeneration,
) -> StorageResult<bool>
fn set_if_match( &self, key: &str, value: T, generation: &KvGeneration, ) -> StorageResult<bool>
Updates or reads
set_if_match.Auto Trait Implementations§
impl<T> Freeze for MemoryKv<T>
impl<T> !RefUnwindSafe for MemoryKv<T>
impl<T> !Send for MemoryKv<T>
impl<T> !Sync for MemoryKv<T>
impl<T> Unpin for MemoryKv<T>
impl<T> UnsafeUnpin for MemoryKv<T>
impl<T> !UnwindSafe for MemoryKv<T>
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