pub enum ServiceLifecycle {
Daemon,
OnDemand,
}Expand description
How a service is meant to run when it is healthy.
Why (#6416): ServiceStatus::Available means “the binary is installed and
nothing is serving”, and the console rendered that one sentence for every
member: “Binary found but daemon is not running.” For trusty-review, which
#6290 retired the daemon of, and trusty-analyze, which #6287 moved to an
on-demand socket server, that IS the healthy resting state — so the console
was rendering the correct state as a fault, in amber, with remediation text
for a daemon the operator cannot start. status alone cannot tell those two
cases apart; this says which reading applies.
What: a per-member constant, not an observation. A connector picks it once
and every ServiceInfo it builds carries it, Absent rows included.
Test: service_lifecycle_serialises_to_snake_case,
on_demand_members_are_exactly_review_and_analyze.
Variants§
Daemon
A resident daemon. Running is the healthy state and Available means
it is installed but stopped.
OnDemand
A per-invocation binary or an on-demand server. Installed IS healthy:
Available is the resting state and Running merely means a server
happens to be up right now.
Trait Implementations§
Source§impl Clone for ServiceLifecycle
impl Clone for ServiceLifecycle
Source§fn clone(&self) -> ServiceLifecycle
fn clone(&self) -> ServiceLifecycle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ServiceLifecycle
Source§impl Debug for ServiceLifecycle
impl Debug for ServiceLifecycle
Source§impl Default for ServiceLifecycle
impl Default for ServiceLifecycle
Source§fn default() -> ServiceLifecycle
fn default() -> ServiceLifecycle
Source§impl<'de> Deserialize<'de> for ServiceLifecycle
impl<'de> Deserialize<'de> for ServiceLifecycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ServiceLifecycle
Source§impl PartialEq for ServiceLifecycle
impl PartialEq for ServiceLifecycle
Source§impl Serialize for ServiceLifecycle
impl Serialize for ServiceLifecycle
impl StructuralPartialEq for ServiceLifecycle
Auto Trait Implementations§
impl Freeze for ServiceLifecycle
impl RefUnwindSafe for ServiceLifecycle
impl Send for ServiceLifecycle
impl Sync for ServiceLifecycle
impl Unpin for ServiceLifecycle
impl UnsafeUnpin for ServiceLifecycle
impl UnwindSafe for ServiceLifecycle
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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