pub struct ControllerCap { /* private fields */ }
Implementations§
source§impl ControllerCap
impl ControllerCap
source§impl ControllerCap
impl ControllerCap
sourcepub const fn into_bytes(self) -> [u8; 8]
pub const fn into_bytes(self) -> [u8; 8]
sourcepub const fn from_bytes(bytes: [u8; 8]) -> Self
pub const fn from_bytes(bytes: [u8; 8]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl ControllerCap
impl ControllerCap
sourcepub fn max_queue_entries(&self) -> <u16 as Specifier>::InOut
pub fn max_queue_entries(&self) -> <u16 as Specifier>::InOut
Returns the value of max_queue_entries.
sourcepub fn max_queue_entries_or_err(
&self,
) -> Result<<u16 as Specifier>::InOut, InvalidBitPattern<<u16 as Specifier>::Bytes>>
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.
sourcepub fn contiguous_queues_required(&self) -> <bool as Specifier>::InOut
pub fn contiguous_queues_required(&self) -> <bool as Specifier>::InOut
Returns the value of contiguous_queues_required.
sourcepub fn contiguous_queues_required_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn timeout(&self) -> <HalfSeconds as Specifier>::InOut
pub fn timeout(&self) -> <HalfSeconds as Specifier>::InOut
Returns the value of timeout.
sourcepub fn timeout_or_err(
&self,
) -> Result<<HalfSeconds as Specifier>::InOut, InvalidBitPattern<<HalfSeconds as Specifier>::Bytes>>
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.
sourcepub fn doorbell_stride(&self) -> <B4 as Specifier>::InOut
pub fn doorbell_stride(&self) -> <B4 as Specifier>::InOut
Returns the value of doorbell_stride.
sourcepub fn doorbell_stride_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
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.
sourcepub fn nvm_subsystem_reset_supported(&self) -> <bool as Specifier>::InOut
pub fn nvm_subsystem_reset_supported(&self) -> <bool as Specifier>::InOut
Returns the value of nvm_subsystem_reset_supported.
sourcepub fn nvm_subsystem_reset_supported_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn boot_partition_supported(&self) -> <bool as Specifier>::InOut
pub fn boot_partition_supported(&self) -> <bool as Specifier>::InOut
Returns the value of boot_partition_supported.
sourcepub fn boot_partition_supported_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn controller_power_scope(
&self,
) -> <ControllerPowerScope as Specifier>::InOut
pub fn controller_power_scope( &self, ) -> <ControllerPowerScope as Specifier>::InOut
Returns the value of controller_power_scope.
sourcepub fn controller_power_scope_or_err(
&self,
) -> Result<<ControllerPowerScope as Specifier>::InOut, InvalidBitPattern<<ControllerPowerScope as Specifier>::Bytes>>
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.
sourcepub fn memory_page_sz_min(&self) -> <B4 as Specifier>::InOut
pub fn memory_page_sz_min(&self) -> <B4 as Specifier>::InOut
Returns the value of memory_page_sz_min.
sourcepub fn memory_page_sz_min_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
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.
sourcepub fn memory_page_sz_max(&self) -> <B4 as Specifier>::InOut
pub fn memory_page_sz_max(&self) -> <B4 as Specifier>::InOut
Returns the value of memory_page_sz_max.
sourcepub fn memory_page_sz_max_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
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.
sourcepub fn persistent_mem_region_supported(&self) -> <bool as Specifier>::InOut
pub fn persistent_mem_region_supported(&self) -> <bool as Specifier>::InOut
Returns the value of persistent_mem_region_supported.
sourcepub fn persistent_mem_region_supported_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn controller_mem_buffer_supported(&self) -> <bool as Specifier>::InOut
pub fn controller_mem_buffer_supported(&self) -> <bool as Specifier>::InOut
Returns the value of controller_mem_buffer_supported.
sourcepub fn controller_mem_buffer_supported_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn nvm_subsystem_shutdown_supported(&self) -> <bool as Specifier>::InOut
pub fn nvm_subsystem_shutdown_supported(&self) -> <bool as Specifier>::InOut
Returns the value of nvm_subsystem_shutdown_supported.
sourcepub fn nvm_subsystem_shutdown_supported_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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.
sourcepub fn controller_ready_modes_supported(&self) -> <B2 as Specifier>::InOut
pub fn controller_ready_modes_supported(&self) -> <B2 as Specifier>::InOut
Returns the value of controller_ready_modes_supported.
sourcepub fn controller_ready_modes_supported_or_err(
&self,
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
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
impl ControllerCap
pub fn controller_ready_with_media_support(&self) -> bool
pub fn controller_ready_independent_of_media_support(&self) -> bool
pub fn arbitration_urgent_with_wrr(&self) -> bool
pub fn arbitration_vendor_specific(&self) -> bool
pub fn supports_nvm_command_set(&self) -> bool
pub fn supports_more_io_command_sets(&self) -> bool
pub fn doorbell_stride_bytes(&self) -> usize
pub fn memory_page_sz_min_bytes(&self) -> usize
pub fn memory_page_sz_max_bytes(&self) -> usize
Trait Implementations§
source§impl Clone for ControllerCap
impl Clone for ControllerCap
source§fn clone(&self) -> ControllerCap
fn clone(&self) -> ControllerCap
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<ControllerCap> for u64
impl From<ControllerCap> for u64
source§fn from(__bf_bitfield: ControllerCap) -> Self
fn from(__bf_bitfield: ControllerCap) -> Self
source§impl From<u64> for ControllerCap
impl From<u64> for ControllerCap
impl Copy for ControllerCap
Auto Trait Implementations§
impl Freeze for ControllerCap
impl RefUnwindSafe for ControllerCap
impl Send for ControllerCap
impl Sync for ControllerCap
impl Unpin for ControllerCap
impl UnwindSafe for ControllerCap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)