pub struct TierStats {
pub hot: StorageStats,
pub warm: StorageStats,
pub cold: StorageStats,
}Expand description
Storage statistics broken down by tier.
Fields§
§hot: StorageStats§warm: StorageStats§cold: StorageStatsImplementations§
Source§impl TierStats
impl TierStats
Sourcepub fn get(&self, tier: Tier) -> &StorageStats
pub fn get(&self, tier: Tier) -> &StorageStats
Get stats for a specific tier.
Sourcepub fn get_mut(&mut self, tier: Tier) -> &mut StorageStats
pub fn get_mut(&mut self, tier: Tier) -> &mut StorageStats
Get mutable stats for a specific tier.
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Total bytes across all tiers.
Sourcepub fn current_bytes(&self) -> u64
pub fn current_bytes(&self) -> u64
Total current bytes across all tiers.
Sourcepub fn historical_bytes(&self) -> u64
pub fn historical_bytes(&self) -> u64
Total historical bytes across all tiers.
Trait Implementations§
Source§impl AddAssign for TierStats
impl AddAssign for TierStats
Source§fn add_assign(&mut self, rhs: TierStats)
fn add_assign(&mut self, rhs: TierStats)
Performs the
+= operation. Read moreimpl Eq for TierStats
impl StructuralPartialEq for TierStats
Auto Trait Implementations§
impl Freeze for TierStats
impl RefUnwindSafe for TierStats
impl Send for TierStats
impl Sync for TierStats
impl Unpin for TierStats
impl UnwindSafe for TierStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.