pub struct PageCacheSnapshot { /* private fields */ }Expand description
A snapshot of PageCacheMetrics.
Implementations§
Source§impl PageCacheSnapshot
impl PageCacheSnapshot
Sourcepub fn get(&self, size: BytePageSize) -> Option<&PageCacheStats>
pub fn get(&self, size: BytePageSize) -> Option<&PageCacheStats>
Returns the statistics of page size size, None for
BytePageSize::Unset.
Sourcepub fn iter(&self) -> impl Iterator<Item = &PageCacheStats>
pub fn iter(&self) -> impl Iterator<Item = &PageCacheStats>
Returns the statistics of every page size, in increasing order of size.
Sourcepub fn total(&self) -> PageCacheStats
pub fn total(&self) -> PageCacheStats
Returns the totals of all page sizes.
Trait Implementations§
Source§impl Clone for PageCacheSnapshot
impl Clone for PageCacheSnapshot
impl Copy for PageCacheSnapshot
Source§impl Debug for PageCacheSnapshot
impl Debug for PageCacheSnapshot
Source§impl Default for PageCacheSnapshot
impl Default for PageCacheSnapshot
impl Eq for PageCacheSnapshot
Source§impl PartialEq for PageCacheSnapshot
impl PartialEq for PageCacheSnapshot
impl StructuralPartialEq for PageCacheSnapshot
Auto Trait Implementations§
impl Freeze for PageCacheSnapshot
impl RefUnwindSafe for PageCacheSnapshot
impl Send for PageCacheSnapshot
impl Sync for PageCacheSnapshot
impl Unpin for PageCacheSnapshot
impl UnsafeUnpin for PageCacheSnapshot
impl UnwindSafe for PageCacheSnapshot
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