#[repr(u8)]pub enum SanitizeAction {
ExitFailure = 1,
BlockErase = 2,
Overwrite = 3,
CryptoErase = 4,
ExitMediaVerification = 5,
}Expand description
Sanitize action — what the Sanitize admin command should do to the drive’s user data area.
Variants§
ExitFailure = 1
Exit a Sanitize Failure state (after a previous sanitize errored).
BlockErase = 2
Block-erase all user data (per spec, fast).
Overwrite = 3
Multi-pass overwrite with a configurable pattern. Slow.
CryptoErase = 4
Cryptographic erase — destroys the media-encryption key. Effectively instantaneous.
ExitMediaVerification = 5
Exit Media Verification (NVMe 2.0+).
Trait Implementations§
Source§impl Clone for SanitizeAction
impl Clone for SanitizeAction
Source§fn clone(&self) -> SanitizeAction
fn clone(&self) -> SanitizeAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SanitizeAction
impl Debug for SanitizeAction
Source§impl PartialEq for SanitizeAction
impl PartialEq for SanitizeAction
Source§fn eq(&self, other: &SanitizeAction) -> bool
fn eq(&self, other: &SanitizeAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SanitizeAction
impl Eq for SanitizeAction
impl StructuralPartialEq for SanitizeAction
Auto Trait Implementations§
impl Freeze for SanitizeAction
impl RefUnwindSafe for SanitizeAction
impl Send for SanitizeAction
impl Sync for SanitizeAction
impl Unpin for SanitizeAction
impl UnsafeUnpin for SanitizeAction
impl UnwindSafe for SanitizeAction
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