pub struct SizeSpec {
pub value: u64,
pub unit: SizeUnit,
}Expand description
A min-free-space-size value: a magnitude and a unit suffix.
The ostree command accepts the suffixes MB, GB, and TB, with the
regex ^([0-9]+)(G|M|T)B$.
Fields§
§value: u64The numeric magnitude.
unit: SizeUnitThe unit suffix.
Implementations§
Trait Implementations§
impl Copy for SizeSpec
impl Eq for SizeSpec
impl StructuralPartialEq for SizeSpec
Auto Trait Implementations§
impl Forget for SizeSpec
impl Freeze for SizeSpec
impl Move for SizeSpec
impl RefUnwindSafe for SizeSpec
impl Send for SizeSpec
impl Sync for SizeSpec
impl Unpin for SizeSpec
impl UnsafeUnpin for SizeSpec
impl UnwindSafe for SizeSpec
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