pub struct MemoryBackend { /* private fields */ }Implementations§
Source§impl MemoryBackend
impl MemoryBackend
Trait Implementations§
Source§impl Default for MemoryBackend
impl Default for MemoryBackend
Source§impl StorageBackend for MemoryBackend
impl StorageBackend for MemoryBackend
Source§fn prefix_scan(&self, prefix: &[u8]) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
fn prefix_scan(&self, prefix: &[u8]) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
Scans all keys with the given prefix. Read more
Source§fn prefix_count(&self, prefix: &[u8]) -> Result<usize>
fn prefix_count(&self, prefix: &[u8]) -> Result<usize>
Counts entries matching the given prefix without materializing values. Read more
Source§fn prefix_scan_keys(&self, prefix: &[u8]) -> Result<Vec<Vec<u8>>>
fn prefix_scan_keys(&self, prefix: &[u8]) -> Result<Vec<Vec<u8>>>
Returns only keys matching the given prefix, without loading values. Read more
Source§fn prefix_scan_batch(
&self,
prefix: &[u8],
batch_size: usize,
after_key: Option<&[u8]>,
) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
fn prefix_scan_batch( &self, prefix: &[u8], batch_size: usize, after_key: Option<&[u8]>, ) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
Scans entries matching prefix in batches, starting after
after_key. Read moreSource§fn range_scan(
&self,
start: &[u8],
end: &[u8],
) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
fn range_scan( &self, start: &[u8], end: &[u8], ) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
Scans keys in the given range. Read more
Source§fn batch(&self) -> Box<dyn BatchOperations>
fn batch(&self) -> Box<dyn BatchOperations>
Creates a new batch for atomic operations.
Auto Trait Implementations§
impl Freeze for MemoryBackend
impl RefUnwindSafe for MemoryBackend
impl Send for MemoryBackend
impl Sync for MemoryBackend
impl Unpin for MemoryBackend
impl UnsafeUnpin for MemoryBackend
impl UnwindSafe for MemoryBackend
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