pub struct Summed<T> {
pub value: MetricState<T>,
pub coverage: Coverage,
}Expand description
One summed metric and the coverage of the sum.
Fields§
§value: MetricState<T>The sum of every member that could be read, or why none could be.
coverage: CoverageHow much of the membership the sum accounts for.
Implementations§
Source§impl<T> Summed<T>
impl<T> Summed<T>
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Whether there is a number here that understates the subtree.
This is the question a renderer actually has to answer, and it is not the same as
“is the coverage complete”. A metric the platform does not report at all has no
contributors and therefore incomplete coverage — but there is no sum to
understate, and marking it partial would suggest a permission problem where the
truth is that per-process I/O does not exist on this OS. The MetricState
already says which of those it is; this says only “the figure you can see is
smaller than the truth”.
Trait Implementations§
impl<T: Copy> Copy for Summed<T>
impl<T: PartialEq> StructuralPartialEq for Summed<T>
Auto Trait Implementations§
impl<T> Freeze for Summed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Summed<T>where
T: RefUnwindSafe,
impl<T> Send for Summed<T>where
T: Send,
impl<T> Sync for Summed<T>where
T: Sync,
impl<T> Unpin for Summed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Summed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Summed<T>where
T: UnwindSafe,
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