pub enum SizeMetric {
Apparent,
Allocated,
}Expand description
Which size metric a report answers in.
Variants§
Apparent
Bytes the file’s contents occupy logically.
Allocated
Bytes the filesystem allocated, which sparse files and clones make differ.
Implementations§
Source§impl SizeMetric
impl SizeMetric
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Stable label, the inverse of parse_size_metric.
const so a surface can declare the default metric’s spelling from the defaults
table rather than writing the word out again: the command line’s --size help said
allocated in a literal of its own.
Trait Implementations§
Source§impl Clone for SizeMetric
impl Clone for SizeMetric
impl Copy for SizeMetric
Source§impl Debug for SizeMetric
impl Debug for SizeMetric
Source§impl Default for SizeMetric
Allocated, from the request model’s defaults table.
impl Default for SizeMetric
Allocated, from the request model’s defaults table.
Read from the table rather than declared here, because this was the one place the default was apparent: every surface answered in allocated bytes, and a Rust caller or an opened-root read that named no metric got a different answer to the same request.
impl Eq for SizeMetric
Source§impl PartialEq for SizeMetric
impl PartialEq for SizeMetric
impl StructuralPartialEq for SizeMetric
Auto Trait Implementations§
impl Freeze for SizeMetric
impl RefUnwindSafe for SizeMetric
impl Send for SizeMetric
impl Sync for SizeMetric
impl Unpin for SizeMetric
impl UnsafeUnpin for SizeMetric
impl UnwindSafe for SizeMetric
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