Enum nbdkit::ExtentType
source · #[repr(u32)]pub enum ExtentType {
Allocated,
Hole,
Zero,
HoleZero,
}
Expand description
Used by Server::extents
to report extents to the client
Variants§
Allocated
A normal, allocated data extent
Hole
An unallocated extent (hole) which does not read back as zeroes. Note this should only be used in specialized circumstances such as when writing a plugin for (or to emulate) certain SCSI drives which do not guarantee that trimmed blocks read back as zeroes.
Zero
An allocated extent which is known to contain only zeroes.
HoleZero
An unallocated extent, a.k.a. a “hole”, which reads back as zeroes. This is the normal type of hole applicable to most disks.
Trait Implementations§
source§impl Clone for ExtentType
impl Clone for ExtentType
source§fn clone(&self) -> ExtentType
fn clone(&self) -> ExtentType
Returns a copy 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 ExtentType
impl Debug for ExtentType
source§impl PartialEq<ExtentType> for ExtentType
impl PartialEq<ExtentType> for ExtentType
source§fn eq(&self, other: &ExtentType) -> bool
fn eq(&self, other: &ExtentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExtentType
impl Eq for ExtentType
impl StructuralEq for ExtentType
impl StructuralPartialEq for ExtentType
Auto Trait Implementations§
impl RefUnwindSafe for ExtentType
impl Send for ExtentType
impl Sync for ExtentType
impl Unpin for ExtentType
impl UnwindSafe for ExtentType
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