pub struct LateSaveMapEnv { /* private fields */ }
Implementations§
Source§impl LateSaveMapEnv
impl LateSaveMapEnv
Sourcepub fn put(&mut self, key: &str, value: &str) -> Option<String>
pub fn put(&mut self, key: &str, value: &str) -> Option<String>
put will first try to load the newest file, puts the value into the in memory map also returns the value
Sourcepub fn delete(&mut self, key: &str)
pub fn delete(&mut self, key: &str)
deletes the value in the in memory map and also returns the value
Sourcepub fn get(&mut self, key: &str) -> Option<&String>
pub fn get(&mut self, key: &str) -> Option<&String>
get trys to load the map from disk and then attempts to get the value from the in memory map
pub fn save(&mut self)
Auto Trait Implementations§
impl Freeze for LateSaveMapEnv
impl RefUnwindSafe for LateSaveMapEnv
impl Send for LateSaveMapEnv
impl Sync for LateSaveMapEnv
impl Unpin for LateSaveMapEnv
impl UnwindSafe for LateSaveMapEnv
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