Skip to main content

ProcessContinuityHandle

Struct ProcessContinuityHandle 

Source
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

Source

pub fn pid(&self) -> u32

Numeric PID (1..=2147483647) bound at handle creation.

Source

pub fn baseline_observation(&self) -> &Value

Borrow the bracketed baseline observation captured across handle registration.

Source

pub fn poll_exited(&self) -> Result<bool, CollectorRefusal>

Non-blocking exit check (true once the bound incarnation has exited).

Source

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

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for ProcessContinuityHandle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.