Set the session state of the store
(&self, state: Weak<RwLock<dyn Session>>)
| 182 | |
| 183 | /// Set the session state of the store |
| 184 | pub fn with_state(&self, state: Weak<RwLock<dyn Session>>) { |
| 185 | let mut lock = self.session.lock(); |
| 186 | *lock = Some(state); |
| 187 | } |
| 188 | |
| 189 | /// Get the current session of the store |
| 190 | pub fn get_session(&self) -> Weak<RwLock<dyn Session>> { |