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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.