pub struct SimpleKVStorage { /* private fields */ }
Expand description
Simple key-value storage using markdown
Implementations§
Source§impl SimpleKVStorage
impl SimpleKVStorage
pub fn new(storage_dir: PathBuf) -> Self
pub fn init(&self) -> Result<()>
pub fn put(&self, key: &str, value: &str) -> Result<()>
pub fn get(&self, key: &str) -> Result<String>
pub fn delete(&self, key: &str) -> Result<()>
pub fn list_keys(&self) -> Result<Vec<String>>
Auto Trait Implementations§
impl Freeze for SimpleKVStorage
impl RefUnwindSafe for SimpleKVStorage
impl Send for SimpleKVStorage
impl Sync for SimpleKVStorage
impl Unpin for SimpleKVStorage
impl UnwindSafe for SimpleKVStorage
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