pub struct SledLss {
db: Db,
}
Fields§
§db: Db
Implementations§
Trait Implementations§
source§impl LocalSecureStorage for SledLss
impl LocalSecureStorage for SledLss
source§fn insert(&self, key: String, value: String) -> LssResult<Option<String>>
fn insert(&self, key: String, value: String) -> LssResult<Option<String>>
Inserts a key-value pair into the LSS.
If the map did not have this key present, None is returned.
If the map did have this key present, the value is updated, and the old value is returned.
source§fn get(&self, key: String) -> LssResult<Option<String>>
fn get(&self, key: String) -> LssResult<Option<String>>
Returns a copy of the value corresponding to the key.
source§fn contains_key(&self, key: String) -> LssResult<bool>
fn contains_key(&self, key: String) -> LssResult<bool>
Returns true if the map contains a value for the specified key.
source§fn is_empty(&self) -> LssResult<bool>
fn is_empty(&self) -> LssResult<bool>
Returns true if the map contains no elements, false otherwise.
Auto Trait Implementations§
impl !RefUnwindSafe for SledLss
impl Send for SledLss
impl Sync for SledLss
impl Unpin for SledLss
impl !UnwindSafe for SledLss
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