pub enum ProcessReadiness {
Immediate,
Notify {
timeout: Duration,
},
}Expand description
Readiness policy for a spawned child process (#1585).
The policy gates when a spawn is reported as successful. It is a lifecycle gate, not application authentication.
Variants§
Immediate
Report success as soon as the child is spawned (legacy behavior).
Notify
Wait for the child’s own READY=1 sd_notify datagram on a per-child
notification endpoint before reporting success. The sender PID must
match the spawned child; a child exit or the hard timeout fails the
spawn, and the child is terminated/reaped and its artifacts cleaned up.
Platform support: the credential-authenticated receiver
(SO_PASSCRED/SCM_CREDENTIALS, exact child-PID matching) is
implemented for Linux/Android only. On other targets a Notify request
is refused with an explicit error BEFORE the child is spawned and
before any launch side effect; it is never silently downgraded to
ProcessReadiness::Immediate, and no unauthenticated receiver
exists. This is a launcher lifecycle boundary: the Required
networking profile itself predates this readiness policy and is a
distinct concern.
Trait Implementations§
Source§impl Clone for ProcessReadiness
impl Clone for ProcessReadiness
Source§fn clone(&self) -> ProcessReadiness
fn clone(&self) -> ProcessReadiness
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcessReadiness
impl Debug for ProcessReadiness
Source§impl PartialEq for ProcessReadiness
impl PartialEq for ProcessReadiness
Source§fn eq(&self, other: &ProcessReadiness) -> bool
fn eq(&self, other: &ProcessReadiness) -> bool
self and other values to be equal, and is used by ==.impl Eq for ProcessReadiness
impl StructuralPartialEq for ProcessReadiness
Auto Trait Implementations§
impl Freeze for ProcessReadiness
impl RefUnwindSafe for ProcessReadiness
impl Send for ProcessReadiness
impl Sync for ProcessReadiness
impl Unpin for ProcessReadiness
impl UnsafeUnpin for ProcessReadiness
impl UnwindSafe for ProcessReadiness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more