pub struct EncryptedStore { /* private fields */ }Implementations§
Source§impl EncryptedStore
impl EncryptedStore
pub fn open( path: &str, namespace: &str, provider: &dyn KeyProvider, ) -> Result<EncryptedStore>
pub fn put(&self, key: &str, value: &[u8]) -> Result<()>
pub fn get(&self, key: &str) -> Result<Option<Vec<u8>>>
pub fn delete(&self, key: &str) -> Result<bool>
pub fn flush(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for EncryptedStore
impl !RefUnwindSafe for EncryptedStore
impl Send for EncryptedStore
impl Sync for EncryptedStore
impl Unpin for EncryptedStore
impl !UnwindSafe for EncryptedStore
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more