pub struct SupervisedSession {
pub name: String,
pub home_dir: String,
pub daemon_pid: Option<u32>,
pub daemon_alive: bool,
pub last_sync_age_seconds: Option<u64>,
pub daemon_version: Option<String>,
}Expand description
One session as seen by the supervisor.
Fields§
§name: StringSession name (info.name from session::list_sessions).
home_dir: Stringhome_dir filesystem path.
daemon_pid: Option<u32>Pid the session’s daemon.pid records; None if file missing.
daemon_alive: boolTrue iff that pid is currently a live process.
last_sync_age_seconds: Option<u64>Seconds since the session’s daemon last completed a sync
cycle (read from last_sync.json); None if never recorded.
daemon_version: Option<String>Version string the running daemon recorded when it wrote its
pidfile (PidRecord::Json.version). None for legacy-int
pidfiles. Surfaced so operators can spot version drift across
the supervisor fleet — the supervisor’s pre-spawn
existing-pidfile check skips alive daemons regardless of
their binary version, so a daemon spawned on v0.13.x and
still running after the supervisor was bounced to v0.14.x
keeps the old binary in memory until it exits.
Trait Implementations§
Source§impl Clone for SupervisedSession
impl Clone for SupervisedSession
Source§fn clone(&self) -> SupervisedSession
fn clone(&self) -> SupervisedSession
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more