pub struct MapEnv { /* private fields */ }
Implementations§
Source§impl MapEnv
impl MapEnv
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 and then saves the map to disk also returns the value
Auto Trait Implementations§
impl Freeze for MapEnv
impl RefUnwindSafe for MapEnv
impl Send for MapEnv
impl Sync for MapEnv
impl Unpin for MapEnv
impl UnwindSafe for MapEnv
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