pub struct Cap(/* private fields */);
Implementations§
Source§impl Cap
impl Cap
Sourcepub const fn with_mqes_z_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_mqes_z_checked(self, value: u16) -> Result<Self, ()>
Bits: 0..16
Sourcepub const fn with_mqes_z(self, value: u16) -> Self
pub const fn with_mqes_z(self, value: u16) -> Self
Bits: 0..16
Sourcepub const fn set_mqes_z(&mut self, value: u16)
pub const fn set_mqes_z(&mut self, value: u16)
Bits: 0..16
Sourcepub const fn with_cqr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_cqr_checked(self, value: bool) -> Result<Self, ()>
Bits: 16..17
Sourcepub const fn ams_weighted_round_robin_with_urgent(&self) -> bool
pub const fn ams_weighted_round_robin_with_urgent(&self) -> bool
Bits: 17..18
Sourcepub const fn with_ams_weighted_round_robin_with_urgent_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ams_weighted_round_robin_with_urgent_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 17..18
Sourcepub const fn with_ams_weighted_round_robin_with_urgent(
self,
value: bool,
) -> Self
pub const fn with_ams_weighted_round_robin_with_urgent( self, value: bool, ) -> Self
Bits: 17..18
Sourcepub const fn set_ams_weighted_round_robin_with_urgent(&mut self, value: bool)
pub const fn set_ams_weighted_round_robin_with_urgent(&mut self, value: bool)
Bits: 17..18
Sourcepub const fn set_ams_weighted_round_robin_with_urgent_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ams_weighted_round_robin_with_urgent_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 17..18
Sourcepub const fn ams_vendor_specific(&self) -> bool
pub const fn ams_vendor_specific(&self) -> bool
Bits: 18..19
Sourcepub const fn with_ams_vendor_specific_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ams_vendor_specific_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 18..19
Sourcepub const fn with_ams_vendor_specific(self, value: bool) -> Self
pub const fn with_ams_vendor_specific(self, value: bool) -> Self
Bits: 18..19
Sourcepub const fn set_ams_vendor_specific(&mut self, value: bool)
pub const fn set_ams_vendor_specific(&mut self, value: bool)
Bits: 18..19
Sourcepub const fn set_ams_vendor_specific_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ams_vendor_specific_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 18..19
Sourcepub const fn with_reserved_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u8) -> Result<Self, ()>
Bits: 19..24
Sourcepub const fn with_reserved(self, value: u8) -> Self
pub const fn with_reserved(self, value: u8) -> Self
Bits: 19..24
Sourcepub const fn set_reserved(&mut self, value: u8)
pub const fn set_reserved(&mut self, value: u8)
Bits: 19..24
Sourcepub const fn with_to_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_to_checked(self, value: u8) -> Result<Self, ()>
Bits: 24..32
Sourcepub const fn with_dstrd_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_dstrd_checked(self, value: u8) -> Result<Self, ()>
Bits: 32..36
Sourcepub const fn with_dstrd(self, value: u8) -> Self
pub const fn with_dstrd(self, value: u8) -> Self
Bits: 32..36
Sourcepub const fn with_nssrs_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_nssrs_checked(self, value: bool) -> Result<Self, ()>
Bits: 36..37
Sourcepub const fn with_nssrs(self, value: bool) -> Self
pub const fn with_nssrs(self, value: bool) -> Self
Bits: 36..37
Sourcepub const fn with_css_nvm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_css_nvm_checked(self, value: bool) -> Result<Self, ()>
Bits: 37..38
Sourcepub const fn with_css_nvm(self, value: bool) -> Self
pub const fn with_css_nvm(self, value: bool) -> Self
Bits: 37..38
Sourcepub const fn set_css_nvm(&mut self, value: bool)
pub const fn set_css_nvm(&mut self, value: bool)
Bits: 37..38
Sourcepub const fn css_reserved(&self) -> u8
pub const fn css_reserved(&self) -> u8
Bits: 38..43
Sourcepub const fn with_css_reserved_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_css_reserved_checked(self, value: u8) -> Result<Self, ()>
Bits: 38..43
Sourcepub const fn with_css_reserved(self, value: u8) -> Self
pub const fn with_css_reserved(self, value: u8) -> Self
Bits: 38..43
Sourcepub const fn set_css_reserved(&mut self, value: u8)
pub const fn set_css_reserved(&mut self, value: u8)
Bits: 38..43
Sourcepub const fn multiple_io(&self) -> bool
pub const fn multiple_io(&self) -> bool
Bits: 43..44
Sourcepub const fn with_multiple_io_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_multiple_io_checked(self, value: bool) -> Result<Self, ()>
Bits: 43..44
Sourcepub const fn with_multiple_io(self, value: bool) -> Self
pub const fn with_multiple_io(self, value: bool) -> Self
Bits: 43..44
Sourcepub const fn set_multiple_io(&mut self, value: bool)
pub const fn set_multiple_io(&mut self, value: bool)
Bits: 43..44
Sourcepub const fn admin_only(&self) -> bool
pub const fn admin_only(&self) -> bool
Bits: 44..45
Sourcepub const fn with_admin_only_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_admin_only_checked(self, value: bool) -> Result<Self, ()>
Bits: 44..45
Sourcepub const fn with_admin_only(self, value: bool) -> Self
pub const fn with_admin_only(self, value: bool) -> Self
Bits: 44..45
Sourcepub const fn set_admin_only(&mut self, value: bool)
pub const fn set_admin_only(&mut self, value: bool)
Bits: 44..45
Sourcepub const fn with_bps_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_bps_checked(self, value: bool) -> Result<Self, ()>
Bits: 45..46
Sourcepub const fn with_cps_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_cps_checked(self, value: u8) -> Result<Self, ()>
Bits: 46..48
Sourcepub const fn with_mpsmin_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_mpsmin_checked(self, value: u8) -> Result<Self, ()>
Bits: 48..52
Sourcepub const fn with_mpsmin(self, value: u8) -> Self
pub const fn with_mpsmin(self, value: u8) -> Self
Bits: 48..52
Sourcepub const fn set_mpsmin(&mut self, value: u8)
pub const fn set_mpsmin(&mut self, value: u8)
Bits: 48..52
Sourcepub const fn with_mpsmax_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_mpsmax_checked(self, value: u8) -> Result<Self, ()>
Bits: 52..56
Sourcepub const fn with_mpsmax(self, value: u8) -> Self
pub const fn with_mpsmax(self, value: u8) -> Self
Bits: 52..56
Sourcepub const fn set_mpsmax(&mut self, value: u8)
pub const fn set_mpsmax(&mut self, value: u8)
Bits: 52..56
Sourcepub const fn with_pmrs_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pmrs_checked(self, value: bool) -> Result<Self, ()>
Bits: 56..57
Sourcepub const fn with_cmbs_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_cmbs_checked(self, value: bool) -> Result<Self, ()>
Bits: 57..58
Sourcepub const fn with_nsss_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_nsss_checked(self, value: bool) -> Result<Self, ()>
Bits: 58..59
Sourcepub const fn with_crwms_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_crwms_checked(self, value: bool) -> Result<Self, ()>
Bits: 59..60
Sourcepub const fn with_crwms(self, value: bool) -> Self
pub const fn with_crwms(self, value: bool) -> Self
Bits: 59..60
Sourcepub const fn with_crims_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_crims_checked(self, value: bool) -> Result<Self, ()>
Bits: 60..61
Sourcepub const fn with_crims(self, value: bool) -> Self
pub const fn with_crims(self, value: bool) -> Self
Bits: 60..61
Sourcepub const fn with_reserved2_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_reserved2_checked(self, value: u64) -> Result<Self, ()>
Bits: 61..64
Sourcepub const fn with_reserved2(self, value: u64) -> Self
pub const fn with_reserved2(self, value: u64) -> Self
Bits: 61..64
Sourcepub const fn set_reserved2(&mut self, value: u64)
pub const fn set_reserved2(&mut self, value: u64)
Bits: 61..64
Trait Implementations§
impl Copy for Cap
Auto Trait Implementations§
impl Freeze for Cap
impl RefUnwindSafe for Cap
impl Send for Cap
impl Sync for Cap
impl Unpin for Cap
impl UnwindSafe for Cap
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