MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_killed

Method is_killed

nodedb/src/control/server/session.rs:216–225  ·  view source on GitHub ↗

Check whether the kill signal has fired (hard revoke). Returns `true` if the session should terminate immediately.

(&mut self)

Source from the content-addressed store, hash-verified

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`.

Callers 1

run_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected