pub struct SimulatedDiskStats {
pub total_bytes: u64,
pub available_bytes: u64,
pub total_inodes: u64,
pub available_inodes: u64,
}Expand description
Simulated statvfs-style disk capacity, so a disk-pressure check can be
exercised without actually filling a real filesystem.
Fields§
§total_bytes: u64§available_bytes: u64§total_inodes: u64§available_inodes: u64Implementations§
Source§impl SimulatedDiskStats
impl SimulatedDiskStats
Sourcepub fn bytes_exhausted() -> Self
pub fn bytes_exhausted() -> Self
Byte capacity exhausted (inodes fine).
Sourcepub fn inodes_exhausted() -> Self
pub fn inodes_exhausted() -> Self
Inode capacity exhausted (bytes fine).
pub fn is_bytes_exhausted(&self) -> bool
pub fn is_inodes_exhausted(&self) -> bool
Trait Implementations§
Source§impl Clone for SimulatedDiskStats
impl Clone for SimulatedDiskStats
impl Copy for SimulatedDiskStats
Source§impl Debug for SimulatedDiskStats
impl Debug for SimulatedDiskStats
impl Eq for SimulatedDiskStats
Source§impl PartialEq for SimulatedDiskStats
impl PartialEq for SimulatedDiskStats
impl StructuralPartialEq for SimulatedDiskStats
Auto Trait Implementations§
impl Freeze for SimulatedDiskStats
impl RefUnwindSafe for SimulatedDiskStats
impl Send for SimulatedDiskStats
impl Sync for SimulatedDiskStats
impl Unpin for SimulatedDiskStats
impl UnsafeUnpin for SimulatedDiskStats
impl UnwindSafe for SimulatedDiskStats
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.