pub struct ClusterContainerSummary {
pub node_id: u64,
pub id: String,
pub service: String,
pub replica: u32,
pub image: String,
pub state: String,
pub pid: Option<u32>,
pub overlay_ip: Option<String>,
}Expand description
One container’s summary for cluster-wide listing/aggregation, tagged with the
node it runs on. Wire type shared by the agent (builds the local view), the
scheduler’s Cluster fan-out, and the API
(GET /internal/services/{svc}/state + list_containers), so the leader can
report replicas placed on remote nodes (distributed scaling).
Fields§
§node_id: u64Raft id of the node this container runs on.
id: StringFull container id (service-replica).
service: StringService name.
replica: u32Replica index.
image: StringImage reference.
state: StringLowercased lifecycle state (e.g. "running").
pid: Option<u32>Process id, when running.
overlay_ip: Option<String>Overlay IP, when assigned.
Trait Implementations§
Source§impl Clone for ClusterContainerSummary
impl Clone for ClusterContainerSummary
Source§fn clone(&self) -> ClusterContainerSummary
fn clone(&self) -> ClusterContainerSummary
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 ClusterContainerSummary
impl Debug for ClusterContainerSummary
Source§impl<'de> Deserialize<'de> for ClusterContainerSummary
impl<'de> Deserialize<'de> for ClusterContainerSummary
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
impl Eq for ClusterContainerSummary
Source§impl PartialEq for ClusterContainerSummary
impl PartialEq for ClusterContainerSummary
Source§fn eq(&self, other: &ClusterContainerSummary) -> bool
fn eq(&self, other: &ClusterContainerSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClusterContainerSummary
impl Serialize for ClusterContainerSummary
impl StructuralPartialEq for ClusterContainerSummary
Auto Trait Implementations§
impl Freeze for ClusterContainerSummary
impl RefUnwindSafe for ClusterContainerSummary
impl Send for ClusterContainerSummary
impl Sync for ClusterContainerSummary
impl Unpin for ClusterContainerSummary
impl UnsafeUnpin for ClusterContainerSummary
impl UnwindSafe for ClusterContainerSummary
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,
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
Compare self to
key and return true if they are equal.