#[non_exhaustive]#[repr(u8)]pub enum SelfTestAction {
Short = 1,
Extended = 2,
HostInitiated = 3,
VendorSpecific = 14,
Abort = 15,
}Expand description
Self-test action for the Device Self-Test admin command.
#[non_exhaustive]: the NVMe STC field has reserved encodings; match
with a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Short = 1
Short self-test (typically completes in minutes).
Extended = 2
Extended self-test (hours).
HostInitiated = 3
Host-initiated self-test (NVMe 2.0+).
VendorSpecific = 14
Vendor-specific self-test.
Abort = 15
Abort a currently-running self-test.
Trait Implementations§
Source§impl Clone for SelfTestAction
impl Clone for SelfTestAction
Source§fn clone(&self) -> SelfTestAction
fn clone(&self) -> SelfTestAction
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 SelfTestAction
impl Debug for SelfTestAction
Source§impl PartialEq for SelfTestAction
impl PartialEq for SelfTestAction
Source§fn eq(&self, other: &SelfTestAction) -> bool
fn eq(&self, other: &SelfTestAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelfTestAction
impl Eq for SelfTestAction
impl StructuralPartialEq for SelfTestAction
Auto Trait Implementations§
impl Freeze for SelfTestAction
impl RefUnwindSafe for SelfTestAction
impl Send for SelfTestAction
impl Sync for SelfTestAction
impl Unpin for SelfTestAction
impl UnsafeUnpin for SelfTestAction
impl UnwindSafe for SelfTestAction
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