Struct nvme::ds::identify::controller::OptionalAdminCommandSupport
source · pub struct OptionalAdminCommandSupport { /* private fields */ }
Implementations§
source§impl OptionalAdminCommandSupport
impl OptionalAdminCommandSupport
sourcepub const fn into_bytes(self) -> [u8; 2]
pub const fn into_bytes(self) -> [u8; 2]
sourcepub const fn from_bytes(bytes: [u8; 2]) -> Self
pub const fn from_bytes(bytes: [u8; 2]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl OptionalAdminCommandSupport
impl OptionalAdminCommandSupport
sourcepub fn security_send_and_recv(&self) -> <B1 as Specifier>::InOut
pub fn security_send_and_recv(&self) -> <B1 as Specifier>::InOut
Returns the value of security_send_and_recv.
sourcepub fn security_send_and_recv_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn security_send_and_recv_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of security_send_and_recv.
#Errors
If the returned value contains an invalid bit pattern for security_send_and_recv.
sourcepub fn format_nvm(&self) -> <B1 as Specifier>::InOut
pub fn format_nvm(&self) -> <B1 as Specifier>::InOut
Returns the value of format_nvm.
sourcepub fn format_nvm_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn format_nvm_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of format_nvm.
#Errors
If the returned value contains an invalid bit pattern for format_nvm.
sourcepub fn firmware_download_and_commit(&self) -> <B1 as Specifier>::InOut
pub fn firmware_download_and_commit(&self) -> <B1 as Specifier>::InOut
Returns the value of firmware_download_and_commit.
sourcepub fn firmware_download_and_commit_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn firmware_download_and_commit_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of firmware_download_and_commit.
#Errors
If the returned value contains an invalid bit pattern for firmware_download_and_commit.
sourcepub fn namespace_management(&self) -> <B1 as Specifier>::InOut
pub fn namespace_management(&self) -> <B1 as Specifier>::InOut
Returns the value of namespace_management.
sourcepub fn namespace_management_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn namespace_management_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of namespace_management.
#Errors
If the returned value contains an invalid bit pattern for namespace_management.
sourcepub fn device_self_test(&self) -> <B1 as Specifier>::InOut
pub fn device_self_test(&self) -> <B1 as Specifier>::InOut
Returns the value of device_self_test.
sourcepub fn device_self_test_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn device_self_test_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of device_self_test.
#Errors
If the returned value contains an invalid bit pattern for device_self_test.
sourcepub fn directives(&self) -> <B1 as Specifier>::InOut
pub fn directives(&self) -> <B1 as Specifier>::InOut
Returns the value of directives.
sourcepub fn directives_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn directives_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of directives.
#Errors
If the returned value contains an invalid bit pattern for directives.
sourcepub fn nvme_mi_send_and_recv(&self) -> <B1 as Specifier>::InOut
pub fn nvme_mi_send_and_recv(&self) -> <B1 as Specifier>::InOut
Returns the value of nvme_mi_send_and_recv.
sourcepub fn nvme_mi_send_and_recv_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn nvme_mi_send_and_recv_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of nvme_mi_send_and_recv.
#Errors
If the returned value contains an invalid bit pattern for nvme_mi_send_and_recv.
sourcepub fn virtualization_management(&self) -> <B1 as Specifier>::InOut
pub fn virtualization_management(&self) -> <B1 as Specifier>::InOut
Returns the value of virtualization_management.
sourcepub fn virtualization_management_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn virtualization_management_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of virtualization_management.
#Errors
If the returned value contains an invalid bit pattern for virtualization_management.
sourcepub fn doorbell_buffer_config(&self) -> <B1 as Specifier>::InOut
pub fn doorbell_buffer_config(&self) -> <B1 as Specifier>::InOut
Returns the value of doorbell_buffer_config.
sourcepub fn doorbell_buffer_config_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn doorbell_buffer_config_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of doorbell_buffer_config.
#Errors
If the returned value contains an invalid bit pattern for doorbell_buffer_config.
sourcepub fn get_lba_status(&self) -> <B1 as Specifier>::InOut
pub fn get_lba_status(&self) -> <B1 as Specifier>::InOut
Returns the value of get_lba_status.
sourcepub fn get_lba_status_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn get_lba_status_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of get_lba_status.
#Errors
If the returned value contains an invalid bit pattern for get_lba_status.
sourcepub fn command_and_feature_lockdown(&self) -> <B1 as Specifier>::InOut
pub fn command_and_feature_lockdown(&self) -> <B1 as Specifier>::InOut
Returns the value of command_and_feature_lockdown.
sourcepub fn command_and_feature_lockdown_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn command_and_feature_lockdown_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of command_and_feature_lockdown.
#Errors
If the returned value contains an invalid bit pattern for command_and_feature_lockdown.
Trait Implementations§
source§impl Clone for OptionalAdminCommandSupport
impl Clone for OptionalAdminCommandSupport
source§fn clone(&self) -> OptionalAdminCommandSupport
fn clone(&self) -> OptionalAdminCommandSupport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more