pub enum NodeStatus {
Pending,
Starting,
Running,
Healthy,
Failed {
reason: String,
},
Stopped,
}Expand description
Lifecycle status of a single managed resource.
Broadcast through a tokio::sync::watch channel so dependents can
wait for their dependencies to become ready without polling.
Variants§
Pending
The resource has not been started yet.
Starting
The runtime accepted the start request; the container is booting.
Running
The container is up but does not declare a healthcheck or has not produced a healthcheck result yet.
Healthy
The container is up and reports a successful healthcheck.
Failed
The resource entered a terminal failure state with the recorded reason.
Stopped
The resource has been stopped on request.
Implementations§
Source§impl NodeStatus
impl NodeStatus
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeStatus
impl Debug for NodeStatus
impl Eq for NodeStatus
Source§impl From<&NodeStatus> for ResourceStatus
impl From<&NodeStatus> for ResourceStatus
Source§fn from(status: &NodeStatus) -> Self
fn from(status: &NodeStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
Source§fn eq(&self, other: &NodeStatus) -> bool
fn eq(&self, other: &NodeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Freeze for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnsafeUnpin for NodeStatus
impl UnwindSafe for NodeStatus
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.