pub struct ControllerConfig { /* private fields */ }
Implementations§
source§impl ControllerConfig
impl ControllerConfig
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 ControllerConfig
impl ControllerConfig
sourcepub fn enable_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn enable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of enable.
#Errors
If the returned value contains an invalid bit pattern for enable.
sourcepub fn with_enable(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_enable(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of enable set to the given value.
#Panics
If the given value is out of bounds for enable.
sourcepub fn with_enable_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_enable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of enable set to the given value.
#Errors
If the given value is out of bounds for enable.
sourcepub fn set_enable(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_enable(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of enable to the given value.
#Panics
If the given value is out of bounds for enable.
sourcepub fn set_enable_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_enable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of enable to the given value.
#Errors
If the given value is out of bounds for enable.
sourcepub fn io_command_set_selected(&self) -> <IOCommandSet as Specifier>::InOut
pub fn io_command_set_selected(&self) -> <IOCommandSet as Specifier>::InOut
Returns the value of io_command_set_selected.
sourcepub fn io_command_set_selected_or_err(
&self,
) -> Result<<IOCommandSet as Specifier>::InOut, InvalidBitPattern<<IOCommandSet as Specifier>::Bytes>>
pub fn io_command_set_selected_or_err( &self, ) -> Result<<IOCommandSet as Specifier>::InOut, InvalidBitPattern<<IOCommandSet as Specifier>::Bytes>>
Returns the value of io_command_set_selected.
#Errors
If the returned value contains an invalid bit pattern for io_command_set_selected.
sourcepub fn with_io_command_set_selected(
self,
new_val: <IOCommandSet as Specifier>::InOut,
) -> Self
pub fn with_io_command_set_selected( self, new_val: <IOCommandSet as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of io_command_set_selected set to the given value.
#Panics
If the given value is out of bounds for io_command_set_selected.
sourcepub fn with_io_command_set_selected_checked(
self,
new_val: <IOCommandSet as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_io_command_set_selected_checked( self, new_val: <IOCommandSet as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of io_command_set_selected set to the given value.
#Errors
If the given value is out of bounds for io_command_set_selected.
sourcepub fn set_io_command_set_selected(
&mut self,
new_val: <IOCommandSet as Specifier>::InOut,
)
pub fn set_io_command_set_selected( &mut self, new_val: <IOCommandSet as Specifier>::InOut, )
Sets the value of io_command_set_selected to the given value.
#Panics
If the given value is out of bounds for io_command_set_selected.
sourcepub fn set_io_command_set_selected_checked(
&mut self,
new_val: <IOCommandSet as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_io_command_set_selected_checked( &mut self, new_val: <IOCommandSet as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of io_command_set_selected to the given value.
#Errors
If the given value is out of bounds for io_command_set_selected.
sourcepub fn mem_page_size(&self) -> <B4 as Specifier>::InOut
pub fn mem_page_size(&self) -> <B4 as Specifier>::InOut
Returns the value of mem_page_size.
sourcepub fn mem_page_size_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
pub fn mem_page_size_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of mem_page_size.
#Errors
If the returned value contains an invalid bit pattern for mem_page_size.
sourcepub fn with_mem_page_size(self, new_val: <B4 as Specifier>::InOut) -> Self
pub fn with_mem_page_size(self, new_val: <B4 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of mem_page_size set to the given value.
#Panics
If the given value is out of bounds for mem_page_size.
sourcepub fn with_mem_page_size_checked(
self,
new_val: <B4 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_mem_page_size_checked( self, new_val: <B4 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of mem_page_size set to the given value.
#Errors
If the given value is out of bounds for mem_page_size.
sourcepub fn set_mem_page_size(&mut self, new_val: <B4 as Specifier>::InOut)
pub fn set_mem_page_size(&mut self, new_val: <B4 as Specifier>::InOut)
Sets the value of mem_page_size to the given value.
#Panics
If the given value is out of bounds for mem_page_size.
sourcepub fn set_mem_page_size_checked(
&mut self,
new_val: <B4 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_mem_page_size_checked( &mut self, new_val: <B4 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of mem_page_size to the given value.
#Errors
If the given value is out of bounds for mem_page_size.
sourcepub fn arbitration_mechanism(
&self,
) -> <ArbitrationMechanism as Specifier>::InOut
pub fn arbitration_mechanism( &self, ) -> <ArbitrationMechanism as Specifier>::InOut
Returns the value of arbitration_mechanism.
sourcepub fn arbitration_mechanism_or_err(
&self,
) -> Result<<ArbitrationMechanism as Specifier>::InOut, InvalidBitPattern<<ArbitrationMechanism as Specifier>::Bytes>>
pub fn arbitration_mechanism_or_err( &self, ) -> Result<<ArbitrationMechanism as Specifier>::InOut, InvalidBitPattern<<ArbitrationMechanism as Specifier>::Bytes>>
Returns the value of arbitration_mechanism.
#Errors
If the returned value contains an invalid bit pattern for arbitration_mechanism.
sourcepub fn with_arbitration_mechanism(
self,
new_val: <ArbitrationMechanism as Specifier>::InOut,
) -> Self
pub fn with_arbitration_mechanism( self, new_val: <ArbitrationMechanism as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of arbitration_mechanism set to the given value.
#Panics
If the given value is out of bounds for arbitration_mechanism.
sourcepub fn with_arbitration_mechanism_checked(
self,
new_val: <ArbitrationMechanism as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_arbitration_mechanism_checked( self, new_val: <ArbitrationMechanism as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of arbitration_mechanism set to the given value.
#Errors
If the given value is out of bounds for arbitration_mechanism.
sourcepub fn set_arbitration_mechanism(
&mut self,
new_val: <ArbitrationMechanism as Specifier>::InOut,
)
pub fn set_arbitration_mechanism( &mut self, new_val: <ArbitrationMechanism as Specifier>::InOut, )
Sets the value of arbitration_mechanism to the given value.
#Panics
If the given value is out of bounds for arbitration_mechanism.
sourcepub fn set_arbitration_mechanism_checked(
&mut self,
new_val: <ArbitrationMechanism as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_arbitration_mechanism_checked( &mut self, new_val: <ArbitrationMechanism as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of arbitration_mechanism to the given value.
#Errors
If the given value is out of bounds for arbitration_mechanism.
sourcepub fn shutdown_notification(
&self,
) -> <ShutdownNotification as Specifier>::InOut
pub fn shutdown_notification( &self, ) -> <ShutdownNotification as Specifier>::InOut
Returns the value of shutdown_notification.
sourcepub fn shutdown_notification_or_err(
&self,
) -> Result<<ShutdownNotification as Specifier>::InOut, InvalidBitPattern<<ShutdownNotification as Specifier>::Bytes>>
pub fn shutdown_notification_or_err( &self, ) -> Result<<ShutdownNotification as Specifier>::InOut, InvalidBitPattern<<ShutdownNotification as Specifier>::Bytes>>
Returns the value of shutdown_notification.
#Errors
If the returned value contains an invalid bit pattern for shutdown_notification.
sourcepub fn with_shutdown_notification(
self,
new_val: <ShutdownNotification as Specifier>::InOut,
) -> Self
pub fn with_shutdown_notification( self, new_val: <ShutdownNotification as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of shutdown_notification set to the given value.
#Panics
If the given value is out of bounds for shutdown_notification.
sourcepub fn with_shutdown_notification_checked(
self,
new_val: <ShutdownNotification as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_shutdown_notification_checked( self, new_val: <ShutdownNotification as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of shutdown_notification set to the given value.
#Errors
If the given value is out of bounds for shutdown_notification.
sourcepub fn set_shutdown_notification(
&mut self,
new_val: <ShutdownNotification as Specifier>::InOut,
)
pub fn set_shutdown_notification( &mut self, new_val: <ShutdownNotification as Specifier>::InOut, )
Sets the value of shutdown_notification to the given value.
#Panics
If the given value is out of bounds for shutdown_notification.
sourcepub fn set_shutdown_notification_checked(
&mut self,
new_val: <ShutdownNotification as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_shutdown_notification_checked( &mut self, new_val: <ShutdownNotification as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of shutdown_notification to the given value.
#Errors
If the given value is out of bounds for shutdown_notification.
sourcepub fn io_submission_queue_entry_size(&self) -> <B4 as Specifier>::InOut
pub fn io_submission_queue_entry_size(&self) -> <B4 as Specifier>::InOut
Returns the value of io_submission_queue_entry_size.
sourcepub fn io_submission_queue_entry_size_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
pub fn io_submission_queue_entry_size_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of io_submission_queue_entry_size.
#Errors
If the returned value contains an invalid bit pattern for io_submission_queue_entry_size.
sourcepub fn with_io_submission_queue_entry_size(
self,
new_val: <B4 as Specifier>::InOut,
) -> Self
pub fn with_io_submission_queue_entry_size( self, new_val: <B4 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of io_submission_queue_entry_size set to the given value.
#Panics
If the given value is out of bounds for io_submission_queue_entry_size.
sourcepub fn with_io_submission_queue_entry_size_checked(
self,
new_val: <B4 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_io_submission_queue_entry_size_checked( self, new_val: <B4 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of io_submission_queue_entry_size set to the given value.
#Errors
If the given value is out of bounds for io_submission_queue_entry_size.
sourcepub fn set_io_submission_queue_entry_size(
&mut self,
new_val: <B4 as Specifier>::InOut,
)
pub fn set_io_submission_queue_entry_size( &mut self, new_val: <B4 as Specifier>::InOut, )
Sets the value of io_submission_queue_entry_size to the given value.
#Panics
If the given value is out of bounds for io_submission_queue_entry_size.
sourcepub fn set_io_submission_queue_entry_size_checked(
&mut self,
new_val: <B4 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_io_submission_queue_entry_size_checked( &mut self, new_val: <B4 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of io_submission_queue_entry_size to the given value.
#Errors
If the given value is out of bounds for io_submission_queue_entry_size.
sourcepub fn io_completion_queue_entry_size(&self) -> <B4 as Specifier>::InOut
pub fn io_completion_queue_entry_size(&self) -> <B4 as Specifier>::InOut
Returns the value of io_completion_queue_entry_size.
sourcepub fn io_completion_queue_entry_size_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
pub fn io_completion_queue_entry_size_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of io_completion_queue_entry_size.
#Errors
If the returned value contains an invalid bit pattern for io_completion_queue_entry_size.
sourcepub fn with_io_completion_queue_entry_size(
self,
new_val: <B4 as Specifier>::InOut,
) -> Self
pub fn with_io_completion_queue_entry_size( self, new_val: <B4 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of io_completion_queue_entry_size set to the given value.
#Panics
If the given value is out of bounds for io_completion_queue_entry_size.
sourcepub fn with_io_completion_queue_entry_size_checked(
self,
new_val: <B4 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_io_completion_queue_entry_size_checked( self, new_val: <B4 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of io_completion_queue_entry_size set to the given value.
#Errors
If the given value is out of bounds for io_completion_queue_entry_size.
sourcepub fn set_io_completion_queue_entry_size(
&mut self,
new_val: <B4 as Specifier>::InOut,
)
pub fn set_io_completion_queue_entry_size( &mut self, new_val: <B4 as Specifier>::InOut, )
Sets the value of io_completion_queue_entry_size to the given value.
#Panics
If the given value is out of bounds for io_completion_queue_entry_size.
sourcepub fn set_io_completion_queue_entry_size_checked(
&mut self,
new_val: <B4 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_io_completion_queue_entry_size_checked( &mut self, new_val: <B4 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of io_completion_queue_entry_size to the given value.
#Errors
If the given value is out of bounds for io_completion_queue_entry_size.
sourcepub fn controller_ready_independent_of_media_enable(
&self,
) -> <bool as Specifier>::InOut
pub fn controller_ready_independent_of_media_enable( &self, ) -> <bool as Specifier>::InOut
Returns the value of controller_ready_independent_of_media_enable.
sourcepub fn controller_ready_independent_of_media_enable_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn controller_ready_independent_of_media_enable_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of controller_ready_independent_of_media_enable.
#Errors
If the returned value contains an invalid bit pattern for controller_ready_independent_of_media_enable.
sourcepub fn with_controller_ready_independent_of_media_enable(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_controller_ready_independent_of_media_enable( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of controller_ready_independent_of_media_enable set to the given value.
#Panics
If the given value is out of bounds for controller_ready_independent_of_media_enable.
sourcepub fn with_controller_ready_independent_of_media_enable_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_controller_ready_independent_of_media_enable_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of controller_ready_independent_of_media_enable set to the given value.
#Errors
If the given value is out of bounds for controller_ready_independent_of_media_enable.
sourcepub fn set_controller_ready_independent_of_media_enable(
&mut self,
new_val: <bool as Specifier>::InOut,
)
pub fn set_controller_ready_independent_of_media_enable( &mut self, new_val: <bool as Specifier>::InOut, )
Sets the value of controller_ready_independent_of_media_enable to the given value.
#Panics
If the given value is out of bounds for controller_ready_independent_of_media_enable.
sourcepub fn set_controller_ready_independent_of_media_enable_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_controller_ready_independent_of_media_enable_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of controller_ready_independent_of_media_enable to the given value.
#Errors
If the given value is out of bounds for controller_ready_independent_of_media_enable.
Trait Implementations§
source§impl Clone for ControllerConfig
impl Clone for ControllerConfig
source§fn clone(&self) -> ControllerConfig
fn clone(&self) -> ControllerConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<ControllerConfig> for u32
impl From<ControllerConfig> for u32
source§fn from(__bf_bitfield: ControllerConfig) -> Self
fn from(__bf_bitfield: ControllerConfig) -> Self
source§impl From<u32> for ControllerConfig
impl From<u32> for ControllerConfig
impl Copy for ControllerConfig
Auto Trait Implementations§
impl Freeze for ControllerConfig
impl RefUnwindSafe for ControllerConfig
impl Send for ControllerConfig
impl Sync for ControllerConfig
impl Unpin for ControllerConfig
impl UnwindSafe for ControllerConfig
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
)