pub struct SledDataStorage { /* private fields */ }
Trait Implementations§
Source§impl Clone for SledDataStorage
impl Clone for SledDataStorage
Source§fn clone(&self) -> SledDataStorage
fn clone(&self) -> SledDataStorage
Returns a copy 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 DataStorage for SledDataStorage
impl DataStorage for SledDataStorage
fn new() -> Self
fn config(&self, config: HashMap<String, String>) -> Self
fn get( &self, namespace: Namespace, key: &str, ) -> Result<Option<Vec<u8>>, String>
fn get_all( &self, namespace: Namespace, ) -> Result<HashMap<String, Vec<u8>>, String>
fn insert( &mut self, namespace: Namespace, key: &str, value: &[u8], ) -> Result<(), String>
fn open(_path: &str) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for SledDataStorage
impl !RefUnwindSafe for SledDataStorage
impl Send for SledDataStorage
impl Sync for SledDataStorage
impl Unpin for SledDataStorage
impl !UnwindSafe for SledDataStorage
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