#[repr(u8)]pub enum SecureErase {
None = 0,
UserData = 1,
Cryptographic = 2,
}Expand description
How user data should be erased during a Format NVM operation.
Variants§
None = 0
No secure erase — only metadata is overwritten.
UserData = 1
User-data block-by-block erase. Time scales with namespace size.
Cryptographic = 2
Cryptographic erase — destroys the media-encryption key. Effectively instantaneous regardless of capacity.
Trait Implementations§
Source§impl Clone for SecureErase
impl Clone for SecureErase
Source§fn clone(&self) -> SecureErase
fn clone(&self) -> SecureErase
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 SecureErase
impl Debug for SecureErase
Source§impl Default for SecureErase
impl Default for SecureErase
Source§fn default() -> SecureErase
fn default() -> SecureErase
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecureErase
impl PartialEq for SecureErase
Source§fn eq(&self, other: &SecureErase) -> bool
fn eq(&self, other: &SecureErase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SecureErase
impl Eq for SecureErase
impl StructuralPartialEq for SecureErase
Auto Trait Implementations§
impl Freeze for SecureErase
impl RefUnwindSafe for SecureErase
impl Send for SecureErase
impl Sync for SecureErase
impl Unpin for SecureErase
impl UnsafeUnpin for SecureErase
impl UnwindSafe for SecureErase
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