Check whether the kill signal has fired (hard revoke). Returns `true` if the session should terminate immediately.
(&mut self)
| 214 | /// |
| 215 | /// Returns `true` if the session should terminate immediately. |
| 216 | fn is_killed(&mut self) -> bool { |
| 217 | match self.kill_rx.as_mut() { |
| 218 | Some(rx) => { |
| 219 | rx.has_changed().unwrap_or(false) |
| 220 | && *rx.borrow_and_update() |
| 221 | != crate::control::security::sessions::KillReason::Alive |
| 222 | } |
| 223 | None => false, |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /// If the credential store's version for this user has advanced since we |
| 228 | /// last bound, rebuild the identity from the fresh `UserRecord`. |