pub struct DenseTierResidencyReport { /* private fields */ }Expand description
Streamed-layer occupancy and cache history for one tier.
Implementations§
Source§impl DenseTierResidencyReport
impl DenseTierResidencyReport
Sourcepub const fn new(
current_layer_count: usize,
peak_layer_count: usize,
current_layer_bytes: u64,
peak_layer_bytes: u64,
cache: DenseCacheMetrics,
) -> Self
pub const fn new( current_layer_count: usize, peak_layer_count: usize, current_layer_bytes: u64, peak_layer_bytes: u64, cache: DenseCacheMetrics, ) -> Self
Creates one logical tier occupancy snapshot.
Sourcepub const fn current_layer_count(self) -> usize
pub const fn current_layer_count(self) -> usize
Returns currently resident streamed layers.
Sourcepub const fn peak_layer_count(self) -> usize
pub const fn peak_layer_count(self) -> usize
Returns the peak number of simultaneously resident streamed layers.
Sourcepub const fn current_layer_bytes(self) -> u64
pub const fn current_layer_bytes(self) -> u64
Returns current streamed-layer bytes in the tier.
Sourcepub const fn peak_layer_bytes(self) -> u64
pub const fn peak_layer_bytes(self) -> u64
Returns peak streamed-layer bytes in the tier.
Sourcepub const fn cache(self) -> DenseCacheMetrics
pub const fn cache(self) -> DenseCacheMetrics
Returns cumulative cache activity for the tier.
Trait Implementations§
Source§impl Clone for DenseTierResidencyReport
impl Clone for DenseTierResidencyReport
Source§fn clone(&self) -> DenseTierResidencyReport
fn clone(&self) -> DenseTierResidencyReport
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 DenseTierResidencyReport
Source§impl Debug for DenseTierResidencyReport
impl Debug for DenseTierResidencyReport
Source§impl Default for DenseTierResidencyReport
impl Default for DenseTierResidencyReport
Source§fn default() -> DenseTierResidencyReport
fn default() -> DenseTierResidencyReport
Returns the “default value” for a type. Read more
impl Eq for DenseTierResidencyReport
Source§impl PartialEq for DenseTierResidencyReport
impl PartialEq for DenseTierResidencyReport
impl StructuralPartialEq for DenseTierResidencyReport
Auto Trait Implementations§
impl Freeze for DenseTierResidencyReport
impl RefUnwindSafe for DenseTierResidencyReport
impl Send for DenseTierResidencyReport
impl Sync for DenseTierResidencyReport
impl Unpin for DenseTierResidencyReport
impl UnsafeUnpin for DenseTierResidencyReport
impl UnwindSafe for DenseTierResidencyReport
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