nvme::ds::identify::controller

Struct ControllerAttributes

source
#[repr(C)]
pub struct ControllerAttributes { /* private fields */ }

Implementations§

source§

impl ControllerAttributes

source

pub const fn new() -> Self

Returns an instance with zero initialized data.

source§

impl ControllerAttributes

source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

source§

impl ControllerAttributes

source

pub fn host_id(&self) -> <B1 as Specifier>::InOut

Returns the value of host_id.

source

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.

source

pub fn non_op_power_state_permissive_mode(&self) -> <B1 as Specifier>::InOut

Returns the value of non_op_power_state_permissive_mode.

source

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.

source

pub fn nvm_sets(&self) -> <B1 as Specifier>::InOut

Returns the value of nvm_sets.

source

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.

source

pub fn read_recovery_levels(&self) -> <B1 as Specifier>::InOut

Returns the value of read_recovery_levels.

source

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.

source

pub fn endurance_groups(&self) -> <B1 as Specifier>::InOut

Returns the value of endurance_groups.

source

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.

source

pub fn predictable_latency_mode(&self) -> <B1 as Specifier>::InOut

Returns the value of predictable_latency_mode.

source

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.

source

pub fn traffic_based_keep_alive(&self) -> <B1 as Specifier>::InOut

Returns the value of traffic_based_keep_alive.

source

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.

source

pub fn namespace_granularity(&self) -> <B1 as Specifier>::InOut

Returns the value of namespace_granularity.

source

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.

source

pub fn sq_associations(&self) -> <B1 as Specifier>::InOut

Returns the value of sq_associations.

source

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.

source

pub fn uuid_list(&self) -> <B1 as Specifier>::InOut

Returns the value of uuid_list.

source

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.

source

pub fn multi_domain_subsystem(&self) -> <B1 as Specifier>::InOut

Returns the value of multi_domain_subsystem.

source

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.

source

pub fn fixed_domain_capacity_management(&self) -> <B1 as Specifier>::InOut

Returns the value of fixed_domain_capacity_management.

source

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.

source

pub fn variable_capacity_management(&self) -> <B1 as Specifier>::InOut

Returns the value of variable_capacity_management.

source

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.

source

pub fn delete_endurance_group(&self) -> <B1 as Specifier>::InOut

Returns the value of delete_endurance_group.

source

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.

source

pub fn delete_nvm_set(&self) -> <B1 as Specifier>::InOut

Returns the value of delete_nvm_set.

source

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.

source

pub fn extended_lba_formats_supported(&self) -> <B1 as Specifier>::InOut

Returns the value of extended_lba_formats_supported.

source

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 CheckFillsUnalignedBits for ControllerAttributes

source§

impl Clone for ControllerAttributes

source§

fn clone(&self) -> ControllerAttributes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ControllerAttributes

source§

fn fmt(&self, __bf_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ControllerAttributes

source§

fn default() -> ControllerAttributes

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.