pub struct LocalStorage { /* private fields */ }Implementations§
Source§impl LocalStorage
impl LocalStorage
pub fn new(project_root: impl AsRef<Path>) -> Result<Self>
pub fn init(project_root: impl AsRef<Path>) -> Result<()>
pub fn store_value( &self, file_path: &Path, key: &str, value: &str, ) -> Result<()>
pub fn get_value(&self, file_path: &Path, key: &str) -> Result<String>
pub fn remove_value(&self, file_path: &Path, key: &str) -> Result<()>
pub fn list_values(&self, file_path: Option<&Path>) -> Result<Vec<StorageEntry>>
Trait Implementations§
Source§impl Clone for LocalStorage
impl Clone for LocalStorage
Source§fn clone(&self) -> LocalStorage
fn clone(&self) -> LocalStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalStorage
impl RefUnwindSafe for LocalStorage
impl Send for LocalStorage
impl Sync for LocalStorage
impl Unpin for LocalStorage
impl UnwindSafe for LocalStorage
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