pub enum DeviceExtent {
Sparse,
Block(u64),
InlineTail(u64),
}Expand description
Physical backing for a logical Extent.
Variants§
Sparse
Unbacked (sparse) extent that reads as zeros.
Block(u64)
Block-aligned physical extent starting at the given device byte offset.
InlineTail(u64)
Single-block inline tail extent starting at a sub-block device byte offset.
Trait Implementations§
Source§impl Clone for DeviceExtent
impl Clone for DeviceExtent
impl Copy for DeviceExtent
Source§impl Debug for DeviceExtent
impl Debug for DeviceExtent
impl Eq for DeviceExtent
Source§impl PartialEq for DeviceExtent
impl PartialEq for DeviceExtent
impl StructuralPartialEq for DeviceExtent
Auto Trait Implementations§
impl Freeze for DeviceExtent
impl RefUnwindSafe for DeviceExtent
impl Send for DeviceExtent
impl Sync for DeviceExtent
impl Unpin for DeviceExtent
impl UnsafeUnpin for DeviceExtent
impl UnwindSafe for DeviceExtent
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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