pub struct MetricsBatch {
pub snapshots: Vec<RealtimeMetrics>,
pub encoded_bytes: usize,
}Expand description
Fully bounded result of a RustFS metrics query.
Fields§
§snapshots: Vec<RealtimeMetrics>§encoded_bytes: usizeImplementations§
Source§impl MetricsBatch
impl MetricsBatch
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Whether RustFS reported incomplete data or omitted its final marker.
Trait Implementations§
Source§impl Clone for MetricsBatch
impl Clone for MetricsBatch
Source§fn clone(&self) -> MetricsBatch
fn clone(&self) -> MetricsBatch
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 MetricsBatch
impl Debug for MetricsBatch
Source§impl Default for MetricsBatch
impl Default for MetricsBatch
Source§fn default() -> MetricsBatch
fn default() -> MetricsBatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricsBatch
impl<'de> Deserialize<'de> for MetricsBatch
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
Source§impl PartialEq for MetricsBatch
impl PartialEq for MetricsBatch
Source§impl Serialize for MetricsBatch
impl Serialize for MetricsBatch
impl StructuralPartialEq for MetricsBatch
Auto Trait Implementations§
impl Freeze for MetricsBatch
impl RefUnwindSafe for MetricsBatch
impl Send for MetricsBatch
impl Sync for MetricsBatch
impl Unpin for MetricsBatch
impl UnsafeUnpin for MetricsBatch
impl UnwindSafe for MetricsBatch
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
Mutably borrows from an owned value. Read more