pub struct FileKeyValueStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for FileKeyValueStorage
impl Clone for FileKeyValueStorage
Source§fn clone(&self) -> FileKeyValueStorage
fn clone(&self) -> FileKeyValueStorage
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 moreSource§impl KeyValueStorage for FileKeyValueStorage
impl KeyValueStorage for FileKeyValueStorage
fn read_storage(&self) -> Result<HashMap<ConfigKeys, String>, KSMRError>
fn save_storage( &mut self, updated_config: HashMap<ConfigKeys, String>, ) -> Result<bool, KSMRError>
fn get(&self, key: ConfigKeys) -> Result<Option<String>, KSMRError>
fn set( &mut self, key: ConfigKeys, value: String, ) -> Result<HashMap<ConfigKeys, String>, KSMRError>
fn delete( &mut self, key: ConfigKeys, ) -> Result<HashMap<ConfigKeys, String>, KSMRError>
fn delete_all(&mut self) -> Result<HashMap<ConfigKeys, String>, KSMRError>
fn contains(&self, key: ConfigKeys) -> Result<bool, KSMRError>
fn create_config_file_if_missing(&self) -> Result<(), KSMRError>
fn is_empty(&self) -> Result<bool, KSMRError>
Auto Trait Implementations§
impl Freeze for FileKeyValueStorage
impl RefUnwindSafe for FileKeyValueStorage
impl Send for FileKeyValueStorage
impl Sync for FileKeyValueStorage
impl Unpin for FileKeyValueStorage
impl UnwindSafe for FileKeyValueStorage
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