pub struct SledBackend { /* private fields */ }Expand description
Sled-based storage backend.
Implementations§
Source§impl SledBackend
impl SledBackend
Trait Implementations§
Source§impl StorageBackend for SledBackend
impl StorageBackend for SledBackend
Source§fn open(path: &Path) -> StorageResult<Self>where
Self: Sized,
fn open(path: &Path) -> StorageResult<Self>where
Self: Sized,
Open or create a storage instance at the given path.
Source§fn flush(&self) -> StorageResult<()>
fn flush(&self) -> StorageResult<()>
Flush pending writes to disk.
Source§fn scan_prefix(&self, prefix: &[u8]) -> StorageResult<Vec<(Vec<u8>, Vec<u8>)>>
fn scan_prefix(&self, prefix: &[u8]) -> StorageResult<Vec<(Vec<u8>, Vec<u8>)>>
Iterate over all keys with a given prefix.
Source§fn clear(&self) -> StorageResult<()>
fn clear(&self) -> StorageResult<()>
Clear all data (use with caution).
Auto Trait Implementations§
impl Freeze for SledBackend
impl !RefUnwindSafe for SledBackend
impl Send for SledBackend
impl Sync for SledBackend
impl Unpin for SledBackend
impl !UnwindSafe for SledBackend
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