Struct nvme::ds::controller::properties::status::ControllerStatus
source · pub struct ControllerStatus { /* private fields */ }
Implementations§
source§impl ControllerStatus
impl ControllerStatus
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl ControllerStatus
impl ControllerStatus
sourcepub fn ready_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn ready_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of ready.
#Errors
If the returned value contains an invalid bit pattern for ready.
sourcepub fn fatal_status(&self) -> <bool as Specifier>::InOut
pub fn fatal_status(&self) -> <bool as Specifier>::InOut
Returns the value of fatal_status.
sourcepub fn fatal_status_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn fatal_status_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of fatal_status.
#Errors
If the returned value contains an invalid bit pattern for fatal_status.
sourcepub fn shutdown_status(&self) -> <ShutdownStatus as Specifier>::InOut
pub fn shutdown_status(&self) -> <ShutdownStatus as Specifier>::InOut
Returns the value of shutdown_status.
sourcepub fn shutdown_status_or_err(
&self
) -> Result<<ShutdownStatus as Specifier>::InOut, InvalidBitPattern<<ShutdownStatus as Specifier>::Bytes>>
pub fn shutdown_status_or_err( &self ) -> Result<<ShutdownStatus as Specifier>::InOut, InvalidBitPattern<<ShutdownStatus as Specifier>::Bytes>>
Returns the value of shutdown_status.
#Errors
If the returned value contains an invalid bit pattern for shutdown_status.
sourcepub fn nvm_subsystem_reset_occurred(&self) -> <bool as Specifier>::InOut
pub fn nvm_subsystem_reset_occurred(&self) -> <bool as Specifier>::InOut
Returns the value of nvm_subsystem_reset_occurred.
sourcepub fn nvm_subsystem_reset_occurred_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn nvm_subsystem_reset_occurred_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of nvm_subsystem_reset_occurred.
#Errors
If the returned value contains an invalid bit pattern for nvm_subsystem_reset_occurred.
sourcepub fn processing_paused(&self) -> <bool as Specifier>::InOut
pub fn processing_paused(&self) -> <bool as Specifier>::InOut
Returns the value of processing_paused.
sourcepub fn processing_paused_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn processing_paused_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of processing_paused.
#Errors
If the returned value contains an invalid bit pattern for processing_paused.
sourcepub fn shutdown_type_is_nvm_subsystem(&self) -> <bool as Specifier>::InOut
pub fn shutdown_type_is_nvm_subsystem(&self) -> <bool as Specifier>::InOut
Returns the value of shutdown_type_is_nvm_subsystem.
sourcepub fn shutdown_type_is_nvm_subsystem_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn shutdown_type_is_nvm_subsystem_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of shutdown_type_is_nvm_subsystem.
#Errors
If the returned value contains an invalid bit pattern for shutdown_type_is_nvm_subsystem.
Trait Implementations§
source§impl Clone for ControllerStatus
impl Clone for ControllerStatus
source§fn clone(&self) -> ControllerStatus
fn clone(&self) -> ControllerStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more