pub enum UnmapBehavior {
Unspecified,
Ignored,
Zeroes,
}Expand description
The behavior of the DiskIo::unmap operation.
This describes what happens to the content of unmapped sectors. Frontends
use this to report the correct behavior to the guest (e.g., SCSI
LBPRZ bit or NVMe DLFEAT field).
Variants§
Unspecified
Unmap may or may not change the content, and not necessarily to zero. The guest cannot assume anything about the content of unmapped sectors.
Ignored
Unmaps are guaranteed to be ignored — the content is unchanged. The disk reports that unmap is not supported.
Zeroes
Unmap will deterministically zero the content. The guest can rely on reading back zeroes from unmapped sectors.
Trait Implementations§
Source§impl Clone for UnmapBehavior
impl Clone for UnmapBehavior
Source§fn clone(&self) -> UnmapBehavior
fn clone(&self) -> UnmapBehavior
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 UnmapBehavior
impl Debug for UnmapBehavior
Source§impl PartialEq for UnmapBehavior
impl PartialEq for UnmapBehavior
impl Copy for UnmapBehavior
impl Eq for UnmapBehavior
impl StructuralPartialEq for UnmapBehavior
Auto Trait Implementations§
impl Freeze for UnmapBehavior
impl RefUnwindSafe for UnmapBehavior
impl Send for UnmapBehavior
impl Sync for UnmapBehavior
impl Unpin for UnmapBehavior
impl UnwindSafe for UnmapBehavior
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