pub struct SynapseStore { /* private fields */ }Implementations§
Source§impl SynapseStore
impl SynapseStore
pub fn open<P: AsRef<Path>>(dir: P) -> Result<Self, StoreError>
pub fn put(&self, key: &[u8], val: &[u8]) -> Result<(), StoreError>
pub fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>, StoreError>
pub fn delete(&self, key: &[u8]) -> Result<(), StoreError>
pub fn flush(&self) -> Result<(), StoreError>
pub fn compact(&self) -> Result<(), StoreError>
Auto Trait Implementations§
impl Freeze for SynapseStore
impl RefUnwindSafe for SynapseStore
impl Send for SynapseStore
impl Sync for SynapseStore
impl Unpin for SynapseStore
impl UnsafeUnpin for SynapseStore
impl UnwindSafe for SynapseStore
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