pub enum ResizeAmount {
Cancel,
Max,
Set(u64),
Add(u64),
Sub(u64),
}Expand description
The target size for a resize operation.
Variants§
Cancel
Cancel an in-progress resize.
Max
Grow the device to its maximum available size.
Set(u64)
Set the device to exactly this many bytes.
Add(u64)
Add this many bytes to the current device size.
Sub(u64)
Subtract this many bytes from the current device size.
Trait Implementations§
Source§impl Clone for ResizeAmount
impl Clone for ResizeAmount
Source§fn clone(&self) -> ResizeAmount
fn clone(&self) -> ResizeAmount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResizeAmount
impl Debug for ResizeAmount
Source§impl PartialEq for ResizeAmount
impl PartialEq for ResizeAmount
impl Copy for ResizeAmount
impl Eq for ResizeAmount
impl StructuralPartialEq for ResizeAmount
Auto Trait Implementations§
impl Freeze for ResizeAmount
impl RefUnwindSafe for ResizeAmount
impl Send for ResizeAmount
impl Sync for ResizeAmount
impl Unpin for ResizeAmount
impl UnsafeUnpin for ResizeAmount
impl UnwindSafe for ResizeAmount
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