pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open() -> Result<Self, String>
pub fn get(&self, key: &str) -> Result<Option<Vec<u8>>, Error>
pub fn set(&mut self, key: &str, value: &[u8]) -> Result<(), Error>
pub fn delete(&mut self, key: &str) -> Result<(), Error>
pub fn exists(&mut self, key: &str) -> Result<bool, Error>
Auto Trait Implementations§
impl !Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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