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