Struct nvme::ds::controller::properties::aqa::AdminQueueAttributes
source · pub struct AdminQueueAttributes { /* private fields */ }
Implementations§
source§impl AdminQueueAttributes
impl AdminQueueAttributes
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 AdminQueueAttributes
impl AdminQueueAttributes
sourcepub fn submission_queue_size(&self) -> <B12 as Specifier>::InOut
pub fn submission_queue_size(&self) -> <B12 as Specifier>::InOut
Returns the value of submission_queue_size.
sourcepub fn submission_queue_size_or_err(
&self
) -> Result<<B12 as Specifier>::InOut, InvalidBitPattern<<B12 as Specifier>::Bytes>>
pub fn submission_queue_size_or_err( &self ) -> Result<<B12 as Specifier>::InOut, InvalidBitPattern<<B12 as Specifier>::Bytes>>
Returns the value of submission_queue_size.
#Errors
If the returned value contains an invalid bit pattern for submission_queue_size.
sourcepub fn with_submission_queue_size(
self,
new_val: <B12 as Specifier>::InOut
) -> Self
pub fn with_submission_queue_size( self, new_val: <B12 as Specifier>::InOut ) -> Self
Returns a copy of the bitfield with the value of submission_queue_size set to the given value.
#Panics
If the given value is out of bounds for submission_queue_size.
sourcepub fn with_submission_queue_size_checked(
self,
new_val: <B12 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_submission_queue_size_checked( self, new_val: <B12 as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of submission_queue_size set to the given value.
#Errors
If the given value is out of bounds for submission_queue_size.
sourcepub fn set_submission_queue_size(&mut self, new_val: <B12 as Specifier>::InOut)
pub fn set_submission_queue_size(&mut self, new_val: <B12 as Specifier>::InOut)
Sets the value of submission_queue_size to the given value.
#Panics
If the given value is out of bounds for submission_queue_size.
sourcepub fn set_submission_queue_size_checked(
&mut self,
new_val: <B12 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_submission_queue_size_checked( &mut self, new_val: <B12 as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of submission_queue_size to the given value.
#Errors
If the given value is out of bounds for submission_queue_size.
sourcepub fn completion_queue_size(&self) -> <B12 as Specifier>::InOut
pub fn completion_queue_size(&self) -> <B12 as Specifier>::InOut
Returns the value of completion_queue_size.
sourcepub fn completion_queue_size_or_err(
&self
) -> Result<<B12 as Specifier>::InOut, InvalidBitPattern<<B12 as Specifier>::Bytes>>
pub fn completion_queue_size_or_err( &self ) -> Result<<B12 as Specifier>::InOut, InvalidBitPattern<<B12 as Specifier>::Bytes>>
Returns the value of completion_queue_size.
#Errors
If the returned value contains an invalid bit pattern for completion_queue_size.
sourcepub fn with_completion_queue_size(
self,
new_val: <B12 as Specifier>::InOut
) -> Self
pub fn with_completion_queue_size( self, new_val: <B12 as Specifier>::InOut ) -> Self
Returns a copy of the bitfield with the value of completion_queue_size set to the given value.
#Panics
If the given value is out of bounds for completion_queue_size.
sourcepub fn with_completion_queue_size_checked(
self,
new_val: <B12 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_completion_queue_size_checked( self, new_val: <B12 as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of completion_queue_size set to the given value.
#Errors
If the given value is out of bounds for completion_queue_size.
sourcepub fn set_completion_queue_size(&mut self, new_val: <B12 as Specifier>::InOut)
pub fn set_completion_queue_size(&mut self, new_val: <B12 as Specifier>::InOut)
Sets the value of completion_queue_size to the given value.
#Panics
If the given value is out of bounds for completion_queue_size.
sourcepub fn set_completion_queue_size_checked(
&mut self,
new_val: <B12 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_completion_queue_size_checked( &mut self, new_val: <B12 as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of completion_queue_size to the given value.
#Errors
If the given value is out of bounds for completion_queue_size.
Trait Implementations§
source§impl Clone for AdminQueueAttributes
impl Clone for AdminQueueAttributes
source§fn clone(&self) -> AdminQueueAttributes
fn clone(&self) -> AdminQueueAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more