pub struct TierHealth {
pub last_duration: Duration,
pub max_duration: Duration,
pub p95_duration: Duration,
pub completed: u64,
pub failed: u64,
pub since_last: Option<Duration>,
}Expand description
Timing and failure counts for one tier.
Fields§
§last_duration: DurationHow long the most recent collection took.
max_duration: DurationThe slowest collection observed in this run.
p95_duration: DurationA running estimate of the 95th percentile, against the §16.1 budget.
completed: u64Completed collections.
failed: u64Collections that returned an error.
since_last: Option<Duration>How long ago this tier last completed, for staleness display.
Implementations§
Source§impl TierHealth
impl TierHealth
Sourcepub const fn has_sampled(&self) -> bool
pub const fn has_sampled(&self) -> bool
Whether this tier has produced at least one successful collection.
Trait Implementations§
Source§impl Clone for TierHealth
impl Clone for TierHealth
Source§fn clone(&self) -> TierHealth
fn clone(&self) -> TierHealth
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 moreimpl Copy for TierHealth
Source§impl Debug for TierHealth
impl Debug for TierHealth
Source§impl Default for TierHealth
impl Default for TierHealth
Source§fn default() -> TierHealth
fn default() -> TierHealth
Returns the “default value” for a type. Read more
Source§impl PartialEq for TierHealth
impl PartialEq for TierHealth
impl StructuralPartialEq for TierHealth
Auto Trait Implementations§
impl Freeze for TierHealth
impl RefUnwindSafe for TierHealth
impl Send for TierHealth
impl Sync for TierHealth
impl Unpin for TierHealth
impl UnsafeUnpin for TierHealth
impl UnwindSafe for TierHealth
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