pub struct ProcessContinuityHandle { /* private fields */ }Expand description
Private, non-serializable read-only OS continuity handle (kqueue EVFILT_PROC
NOTE_EXIT on macOS; pidfd on Linux) bracketed at registration against
kernel start-identity metadata.
This type intentionally exposes no raw file descriptor accessor, redacts OS
descriptors from std::fmt::Debug, implements neither Serialize nor
Deserialize, and provides no signal delivery API.
Implementations§
Source§impl ProcessContinuityHandle
impl ProcessContinuityHandle
Sourcepub fn baseline_observation(&self) -> &Value
pub fn baseline_observation(&self) -> &Value
Borrow the bracketed baseline observation captured across handle registration.
Sourcepub fn poll_exited(&self) -> Result<bool, CollectorRefusal>
pub fn poll_exited(&self) -> Result<bool, CollectorRefusal>
Non-blocking exit check (true once the bound incarnation has exited).
Sourcepub fn wait_exit(&self, timeout: Duration) -> Result<bool, CollectorRefusal>
pub fn wait_exit(&self, timeout: Duration) -> Result<bool, CollectorRefusal>
Wait up to timeout for the bound incarnation to exit (Ok(true) if exited,
Ok(false) if timeout elapsed while still running).
Sourcepub fn reobserve(
&self,
observed_at: Option<&str>,
) -> Result<Value, CollectorRefusal>
pub fn reobserve( &self, observed_at: Option<&str>, ) -> Result<Value, CollectorRefusal>
Collect a fresh read-only observation for self.pid using the stored
HostScope and ObservationOptions.
Sourcepub fn reverify(
&self,
policy: &ComparisonPolicy,
now_utc: &str,
) -> Result<(Value, ComparisonOutcome), CollectorRefusal>
pub fn reverify( &self, policy: &ComparisonPolicy, now_utc: &str, ) -> Result<(Value, ComparisonOutcome), CollectorRefusal>
Re-observe self.pid at trusted UTC instant now_utc, enforce
admit_live_observation, and evaluate compare_native_observations
against Self::baseline_observation.