Struct nvme::ds::identify::controller::ControllerAttributes
source · pub struct ControllerAttributes { /* private fields */ }
Implementations§
source§impl ControllerAttributes
impl ControllerAttributes
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 ControllerAttributes
impl ControllerAttributes
sourcepub fn host_id_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn host_id_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of host_id.
#Errors
If the returned value contains an invalid bit pattern for host_id.
sourcepub fn non_op_power_state_permissive_mode(&self) -> <B1 as Specifier>::InOut
pub fn non_op_power_state_permissive_mode(&self) -> <B1 as Specifier>::InOut
Returns the value of non_op_power_state_permissive_mode.
sourcepub fn non_op_power_state_permissive_mode_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn non_op_power_state_permissive_mode_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of non_op_power_state_permissive_mode.
#Errors
If the returned value contains an invalid bit pattern for non_op_power_state_permissive_mode.
sourcepub fn nvm_sets_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn nvm_sets_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of nvm_sets.
#Errors
If the returned value contains an invalid bit pattern for nvm_sets.
sourcepub fn read_recovery_levels(&self) -> <B1 as Specifier>::InOut
pub fn read_recovery_levels(&self) -> <B1 as Specifier>::InOut
Returns the value of read_recovery_levels.
sourcepub fn read_recovery_levels_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn read_recovery_levels_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of read_recovery_levels.
#Errors
If the returned value contains an invalid bit pattern for read_recovery_levels.
sourcepub fn endurance_groups(&self) -> <B1 as Specifier>::InOut
pub fn endurance_groups(&self) -> <B1 as Specifier>::InOut
Returns the value of endurance_groups.
sourcepub fn endurance_groups_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn endurance_groups_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of endurance_groups.
#Errors
If the returned value contains an invalid bit pattern for endurance_groups.
sourcepub fn predictable_latency_mode(&self) -> <B1 as Specifier>::InOut
pub fn predictable_latency_mode(&self) -> <B1 as Specifier>::InOut
Returns the value of predictable_latency_mode.
sourcepub fn predictable_latency_mode_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn predictable_latency_mode_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of predictable_latency_mode.
#Errors
If the returned value contains an invalid bit pattern for predictable_latency_mode.
sourcepub fn traffic_based_keep_alive(&self) -> <B1 as Specifier>::InOut
pub fn traffic_based_keep_alive(&self) -> <B1 as Specifier>::InOut
Returns the value of traffic_based_keep_alive.
sourcepub fn traffic_based_keep_alive_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn traffic_based_keep_alive_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of traffic_based_keep_alive.
#Errors
If the returned value contains an invalid bit pattern for traffic_based_keep_alive.
sourcepub fn namespace_granularity(&self) -> <B1 as Specifier>::InOut
pub fn namespace_granularity(&self) -> <B1 as Specifier>::InOut
Returns the value of namespace_granularity.
sourcepub fn namespace_granularity_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn namespace_granularity_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of namespace_granularity.
#Errors
If the returned value contains an invalid bit pattern for namespace_granularity.
sourcepub fn sq_associations(&self) -> <B1 as Specifier>::InOut
pub fn sq_associations(&self) -> <B1 as Specifier>::InOut
Returns the value of sq_associations.
sourcepub fn sq_associations_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn sq_associations_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of sq_associations.
#Errors
If the returned value contains an invalid bit pattern for sq_associations.
sourcepub fn uuid_list_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn uuid_list_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of uuid_list.
#Errors
If the returned value contains an invalid bit pattern for uuid_list.
sourcepub fn multi_domain_subsystem(&self) -> <B1 as Specifier>::InOut
pub fn multi_domain_subsystem(&self) -> <B1 as Specifier>::InOut
Returns the value of multi_domain_subsystem.
sourcepub fn multi_domain_subsystem_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn multi_domain_subsystem_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of multi_domain_subsystem.
#Errors
If the returned value contains an invalid bit pattern for multi_domain_subsystem.
sourcepub fn fixed_domain_capacity_management(&self) -> <B1 as Specifier>::InOut
pub fn fixed_domain_capacity_management(&self) -> <B1 as Specifier>::InOut
Returns the value of fixed_domain_capacity_management.
sourcepub fn fixed_domain_capacity_management_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn fixed_domain_capacity_management_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of fixed_domain_capacity_management.
#Errors
If the returned value contains an invalid bit pattern for fixed_domain_capacity_management.
sourcepub fn variable_capacity_management(&self) -> <B1 as Specifier>::InOut
pub fn variable_capacity_management(&self) -> <B1 as Specifier>::InOut
Returns the value of variable_capacity_management.
sourcepub fn variable_capacity_management_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn variable_capacity_management_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of variable_capacity_management.
#Errors
If the returned value contains an invalid bit pattern for variable_capacity_management.
sourcepub fn delete_endurance_group(&self) -> <B1 as Specifier>::InOut
pub fn delete_endurance_group(&self) -> <B1 as Specifier>::InOut
Returns the value of delete_endurance_group.
sourcepub fn delete_endurance_group_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn delete_endurance_group_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of delete_endurance_group.
#Errors
If the returned value contains an invalid bit pattern for delete_endurance_group.
sourcepub fn delete_nvm_set(&self) -> <B1 as Specifier>::InOut
pub fn delete_nvm_set(&self) -> <B1 as Specifier>::InOut
Returns the value of delete_nvm_set.
sourcepub fn delete_nvm_set_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn delete_nvm_set_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of delete_nvm_set.
#Errors
If the returned value contains an invalid bit pattern for delete_nvm_set.
sourcepub fn extended_lba_formats_supported(&self) -> <B1 as Specifier>::InOut
pub fn extended_lba_formats_supported(&self) -> <B1 as Specifier>::InOut
Returns the value of extended_lba_formats_supported.
sourcepub fn extended_lba_formats_supported_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn extended_lba_formats_supported_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of extended_lba_formats_supported.
#Errors
If the returned value contains an invalid bit pattern for extended_lba_formats_supported.
Trait Implementations§
source§impl Clone for ControllerAttributes
impl Clone for ControllerAttributes
source§fn clone(&self) -> ControllerAttributes
fn clone(&self) -> ControllerAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more