pub enum DiskDisplay {
Info,
Percentage,
InfoBar,
BarInfo,
Bar,
}Expand description
Controls the format of the disk usage display.
- Info: Show used/total (e.g., “40G / 100G”).
- Percentage: Show percent used and a bar (e.g., “40% [███]”). (default)
- InfoBar: Show used/total and a bar (e.g., “40G / 100G [███]”).
- BarInfo: Show bar first, then used/total.
- Bar: Show only the bar.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiskDisplay
impl RefUnwindSafe for DiskDisplay
impl Send for DiskDisplay
impl Sync for DiskDisplay
impl Unpin for DiskDisplay
impl UnwindSafe for DiskDisplay
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more