pub struct NodeServiceState {
pub node_id: u64,
pub running: u32,
pub healthy: bool,
pub containers: Vec<ClusterContainerSummary>,
}Expand description
A single node’s view of one service: how many replicas it runs locally,
whether they’re healthy there, and their containers. The leader aggregates
one of these per node (its own local view + remote views fetched via the
Cluster fan-out) to compute cluster-wide replica count, health, and the
ps container listing for distributed services.
Fields§
§node_id: u64Raft id of the reporting node.
running: u32Replicas of the service running on this node.
healthy: boolWhether this node’s replicas of the service are healthy (trivially true when the node runs none).
containers: Vec<ClusterContainerSummary>This node’s containers for the service.
Trait Implementations§
Source§impl Clone for NodeServiceState
impl Clone for NodeServiceState
Source§fn clone(&self) -> NodeServiceState
fn clone(&self) -> NodeServiceState
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 NodeServiceState
impl Debug for NodeServiceState
Source§impl<'de> Deserialize<'de> for NodeServiceState
impl<'de> Deserialize<'de> for NodeServiceState
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeServiceState
impl RefUnwindSafe for NodeServiceState
impl Send for NodeServiceState
impl Sync for NodeServiceState
impl Unpin for NodeServiceState
impl UnsafeUnpin for NodeServiceState
impl UnwindSafe for NodeServiceState
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