pub struct Cdw11FeatureArbitration(/* private fields */);Expand description
Arbitration feature (01h). See NVMe Base 2.3 Figure 404.
Implementations§
Source§impl Cdw11FeatureArbitration
impl Cdw11FeatureArbitration
Sourcepub const fn ab(&self) -> u8
pub const fn ab(&self) -> u8
Arbitration Burst (power-of-two burst; 111b means no limit)
Bits: 0..3
Sourcepub const fn with_ab_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_ab_checked(self, value: u8) -> Result<Self, ()>
Arbitration Burst (power-of-two burst; 111b means no limit)
Bits: 0..3
Sourcepub const fn with_ab(self, value: u8) -> Self
pub const fn with_ab(self, value: u8) -> Self
Arbitration Burst (power-of-two burst; 111b means no limit)
Bits: 0..3
Sourcepub const fn set_ab(&mut self, value: u8)
pub const fn set_ab(&mut self, value: u8)
Arbitration Burst (power-of-two burst; 111b means no limit)
Bits: 0..3
Sourcepub const fn set_ab_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_ab_checked(&mut self, value: u8) -> Result<(), ()>
Arbitration Burst (power-of-two burst; 111b means no limit)
Bits: 0..3
Sourcepub const fn with_lpw_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_lpw_checked(self, value: u8) -> Result<Self, ()>
Low Priority Weight (0-based)
Bits: 8..16
Sourcepub const fn set_lpw_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_lpw_checked(&mut self, value: u8) -> Result<(), ()>
Low Priority Weight (0-based)
Bits: 8..16
Sourcepub const fn with_mpw_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_mpw_checked(self, value: u8) -> Result<Self, ()>
Medium Priority Weight (0-based)
Bits: 16..24
Sourcepub const fn set_mpw_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_mpw_checked(&mut self, value: u8) -> Result<(), ()>
Medium Priority Weight (0-based)
Bits: 16..24
Sourcepub const fn with_hpw_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_hpw_checked(self, value: u8) -> Result<Self, ()>
High Priority Weight (0-based)
Bits: 24..32
Trait Implementations§
Source§impl Clone for Cdw11FeatureArbitration
impl Clone for Cdw11FeatureArbitration
Source§fn clone(&self) -> Cdw11FeatureArbitration
fn clone(&self) -> Cdw11FeatureArbitration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Cdw11FeatureArbitration
impl Debug for Cdw11FeatureArbitration
Source§impl Default for Cdw11FeatureArbitration
impl Default for Cdw11FeatureArbitration
Source§impl From<Cdw11FeatureArbitration> for u32
impl From<Cdw11FeatureArbitration> for u32
Source§fn from(v: Cdw11FeatureArbitration) -> u32
fn from(v: Cdw11FeatureArbitration) -> u32
Converts to this type from the input type.
Source§impl From<u32> for Cdw11FeatureArbitration
impl From<u32> for Cdw11FeatureArbitration
impl Copy for Cdw11FeatureArbitration
Auto Trait Implementations§
impl Freeze for Cdw11FeatureArbitration
impl RefUnwindSafe for Cdw11FeatureArbitration
impl Send for Cdw11FeatureArbitration
impl Sync for Cdw11FeatureArbitration
impl Unpin for Cdw11FeatureArbitration
impl UnsafeUnpin for Cdw11FeatureArbitration
impl UnwindSafe for Cdw11FeatureArbitration
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
Mutably borrows from an owned value. Read more