pub struct WorkerMetricDetailStatus {
pub configured: i32,
pub effective: i32,
pub previous_effective: i32,
pub active_lease_count: u32,
}Expand description
Per-worker outcome of a SetMetricDetail fan-out. Reported back to the
requesting client so it can decide whether the elevation actually took
effect (e.g. all workers acknowledged) or whether degraded operation
(some workers too old) is in play.
Fields§
§configured: i32The worker’s static MetricsConfig.detail (or DETAIL_CLUSTER if
unset). Independent of leases.
effective: i32Effective level AFTER processing this verb: max(configured, leases).
previous_effective: i32Effective level BEFORE the verb. Equal to effective for a no-op.
active_lease_count: u32Number of active leases on this worker (post-prune). Useful to surface “another client is still leasing this level” in the TUI.
Implementations§
Source§impl WorkerMetricDetailStatus
impl WorkerMetricDetailStatus
Sourcepub fn configured(&self) -> MetricDetail
pub fn configured(&self) -> MetricDetail
Returns the enum value of configured, or the default if the field is set to an invalid enum value.
Sourcepub fn set_configured(&mut self, value: MetricDetail)
pub fn set_configured(&mut self, value: MetricDetail)
Sets configured to the provided enum value.
Sourcepub fn effective(&self) -> MetricDetail
pub fn effective(&self) -> MetricDetail
Returns the enum value of effective, or the default if the field is set to an invalid enum value.
Sourcepub fn set_effective(&mut self, value: MetricDetail)
pub fn set_effective(&mut self, value: MetricDetail)
Sets effective to the provided enum value.
Sourcepub fn previous_effective(&self) -> MetricDetail
pub fn previous_effective(&self) -> MetricDetail
Returns the enum value of previous_effective, or the default if the field is set to an invalid enum value.
Sourcepub fn set_previous_effective(&mut self, value: MetricDetail)
pub fn set_previous_effective(&mut self, value: MetricDetail)
Sets previous_effective to the provided enum value.
Trait Implementations§
Source§impl Clone for WorkerMetricDetailStatus
impl Clone for WorkerMetricDetailStatus
Source§fn clone(&self) -> WorkerMetricDetailStatus
fn clone(&self) -> WorkerMetricDetailStatus
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 WorkerMetricDetailStatus
impl Debug for WorkerMetricDetailStatus
Source§impl Default for WorkerMetricDetailStatus
impl Default for WorkerMetricDetailStatus
Source§impl<'de> Deserialize<'de> for WorkerMetricDetailStatus
impl<'de> Deserialize<'de> for WorkerMetricDetailStatus
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>,
Source§impl Hash for WorkerMetricDetailStatus
impl Hash for WorkerMetricDetailStatus
Source§impl Message for WorkerMetricDetailStatus
impl Message for WorkerMetricDetailStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Ord for WorkerMetricDetailStatus
impl Ord for WorkerMetricDetailStatus
Source§fn cmp(&self, other: &WorkerMetricDetailStatus) -> Ordering
fn cmp(&self, other: &WorkerMetricDetailStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WorkerMetricDetailStatus
impl PartialEq for WorkerMetricDetailStatus
Source§fn eq(&self, other: &WorkerMetricDetailStatus) -> bool
fn eq(&self, other: &WorkerMetricDetailStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WorkerMetricDetailStatus
impl PartialOrd for WorkerMetricDetailStatus
Source§impl Serialize for WorkerMetricDetailStatus
impl Serialize for WorkerMetricDetailStatus
impl Copy for WorkerMetricDetailStatus
impl Eq for WorkerMetricDetailStatus
impl StructuralPartialEq for WorkerMetricDetailStatus
Auto Trait Implementations§
impl Freeze for WorkerMetricDetailStatus
impl RefUnwindSafe for WorkerMetricDetailStatus
impl Send for WorkerMetricDetailStatus
impl Sync for WorkerMetricDetailStatus
impl Unpin for WorkerMetricDetailStatus
impl UnsafeUnpin for WorkerMetricDetailStatus
impl UnwindSafe for WorkerMetricDetailStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.