nvme::ds::controller::properties::capabilities

Struct ControllerCap

source
pub struct ControllerCap { /* private fields */ }

Implementations§

source§

impl ControllerCap

source

pub const fn new() -> Self

Returns an instance with zero initialized data.

source§

impl ControllerCap

source

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

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; 8]) -> Self

Converts the given bytes directly into the bitfield struct.

source§

impl ControllerCap

source

pub fn max_queue_entries(&self) -> <u16 as Specifier>::InOut

Returns the value of max_queue_entries.

source

pub fn max_queue_entries_or_err( &self, ) -> Result<<u16 as Specifier>::InOut, InvalidBitPattern<<u16 as Specifier>::Bytes>>

Returns the value of max_queue_entries.

#Errors

If the returned value contains an invalid bit pattern for max_queue_entries.

source

pub fn contiguous_queues_required(&self) -> <bool as Specifier>::InOut

Returns the value of contiguous_queues_required.

source

pub fn contiguous_queues_required_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of contiguous_queues_required.

#Errors

If the returned value contains an invalid bit pattern for contiguous_queues_required.

source

pub fn timeout(&self) -> <HalfSeconds as Specifier>::InOut

Returns the value of timeout.

source

pub fn timeout_or_err( &self, ) -> Result<<HalfSeconds as Specifier>::InOut, InvalidBitPattern<<HalfSeconds as Specifier>::Bytes>>

Returns the value of timeout.

#Errors

If the returned value contains an invalid bit pattern for timeout.

source

pub fn doorbell_stride(&self) -> <B4 as Specifier>::InOut

Returns the value of doorbell_stride.

source

pub fn doorbell_stride_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>

Returns the value of doorbell_stride.

#Errors

If the returned value contains an invalid bit pattern for doorbell_stride.

source

pub fn nvm_subsystem_reset_supported(&self) -> <bool as Specifier>::InOut

Returns the value of nvm_subsystem_reset_supported.

source

pub fn nvm_subsystem_reset_supported_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of nvm_subsystem_reset_supported.

#Errors

If the returned value contains an invalid bit pattern for nvm_subsystem_reset_supported.

source

pub fn boot_partition_supported(&self) -> <bool as Specifier>::InOut

Returns the value of boot_partition_supported.

source

pub fn boot_partition_supported_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of boot_partition_supported.

#Errors

If the returned value contains an invalid bit pattern for boot_partition_supported.

source

pub fn controller_power_scope( &self, ) -> <ControllerPowerScope as Specifier>::InOut

Returns the value of controller_power_scope.

source

pub fn controller_power_scope_or_err( &self, ) -> Result<<ControllerPowerScope as Specifier>::InOut, InvalidBitPattern<<ControllerPowerScope as Specifier>::Bytes>>

Returns the value of controller_power_scope.

#Errors

If the returned value contains an invalid bit pattern for controller_power_scope.

source

pub fn memory_page_sz_min(&self) -> <B4 as Specifier>::InOut

Returns the value of memory_page_sz_min.

source

pub fn memory_page_sz_min_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>

Returns the value of memory_page_sz_min.

#Errors

If the returned value contains an invalid bit pattern for memory_page_sz_min.

source

pub fn memory_page_sz_max(&self) -> <B4 as Specifier>::InOut

Returns the value of memory_page_sz_max.

source

pub fn memory_page_sz_max_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>

Returns the value of memory_page_sz_max.

#Errors

If the returned value contains an invalid bit pattern for memory_page_sz_max.

source

pub fn persistent_mem_region_supported(&self) -> <bool as Specifier>::InOut

Returns the value of persistent_mem_region_supported.

source

pub fn persistent_mem_region_supported_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of persistent_mem_region_supported.

#Errors

If the returned value contains an invalid bit pattern for persistent_mem_region_supported.

source

pub fn controller_mem_buffer_supported(&self) -> <bool as Specifier>::InOut

Returns the value of controller_mem_buffer_supported.

source

pub fn controller_mem_buffer_supported_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of controller_mem_buffer_supported.

#Errors

If the returned value contains an invalid bit pattern for controller_mem_buffer_supported.

source

pub fn nvm_subsystem_shutdown_supported(&self) -> <bool as Specifier>::InOut

Returns the value of nvm_subsystem_shutdown_supported.

source

pub fn nvm_subsystem_shutdown_supported_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of nvm_subsystem_shutdown_supported.

#Errors

If the returned value contains an invalid bit pattern for nvm_subsystem_shutdown_supported.

source

pub fn controller_ready_modes_supported(&self) -> <B2 as Specifier>::InOut

Returns the value of controller_ready_modes_supported.

source

pub fn controller_ready_modes_supported_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>

Returns the value of controller_ready_modes_supported.

#Errors

If the returned value contains an invalid bit pattern for controller_ready_modes_supported.

source§

impl ControllerCap

Trait Implementations§

source§

impl CheckFillsUnalignedBits for ControllerCap

source§

impl Clone for ControllerCap

source§

fn clone(&self) -> ControllerCap

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 From<ControllerCap> for u64
where [(); 64]: IsU64Compatible,

source§

fn from(__bf_bitfield: ControllerCap) -> Self

Converts to this type from the input type.
source§

impl From<u64> for ControllerCap
where [(); 64]: IsU64Compatible,

source§

fn from(__bf_prim: u64) -> Self

Converts to this type from the input type.
source§

impl Copy for ControllerCap

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.