pub struct DiskStats {
pub total_bytes: u64,
pub available_bytes: u64,
pub used_bytes: u64,
pub checks_performed: u64,
pub soft_limit_warnings: u64,
pub hard_limit_exceeded: bool,
pub estimated_bytes_written: u64,
}Expand description
Disk space usage statistics.
Fields§
§total_bytes: u64Total disk space in bytes
available_bytes: u64Available disk space in bytes
used_bytes: u64Used disk space in bytes
checks_performed: u64Number of disk space checks performed
soft_limit_warnings: u64Number of soft limit warnings
hard_limit_exceeded: boolWhether hard limit was ever exceeded
estimated_bytes_written: u64Estimated bytes written this session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiskStats
impl RefUnwindSafe for DiskStats
impl Send for DiskStats
impl Sync for DiskStats
impl Unpin for DiskStats
impl UnsafeUnpin for DiskStats
impl UnwindSafe for DiskStats
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.