nvme_spec

Struct Cap

Source
pub struct Cap(/* private fields */);

Implementations§

Source§

impl Cap

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn mqes_z(&self) -> u16

Bits: 0..16

Source

pub const fn with_mqes_z_checked(self, value: u16) -> Result<Self, ()>

Bits: 0..16

Source

pub const fn with_mqes_z(self, value: u16) -> Self

Bits: 0..16

Source

pub const fn set_mqes_z(&mut self, value: u16)

Bits: 0..16

Source

pub const fn set_mqes_z_checked(&mut self, value: u16) -> Result<(), ()>

Bits: 0..16

Source

pub const fn cqr(&self) -> bool

Bits: 16..17

Source

pub const fn with_cqr_checked(self, value: bool) -> Result<Self, ()>

Bits: 16..17

Source

pub const fn with_cqr(self, value: bool) -> Self

Bits: 16..17

Source

pub const fn set_cqr(&mut self, value: bool)

Bits: 16..17

Source

pub const fn set_cqr_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 16..17

Source

pub const fn ams_weighted_round_robin_with_urgent(&self) -> bool

Bits: 17..18

Source

pub const fn with_ams_weighted_round_robin_with_urgent_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 17..18

Source

pub const fn with_ams_weighted_round_robin_with_urgent( self, value: bool, ) -> Self

Bits: 17..18

Source

pub const fn set_ams_weighted_round_robin_with_urgent(&mut self, value: bool)

Bits: 17..18

Source

pub const fn set_ams_weighted_round_robin_with_urgent_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 17..18

Source

pub const fn ams_vendor_specific(&self) -> bool

Bits: 18..19

Source

pub const fn with_ams_vendor_specific_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 18..19

Source

pub const fn with_ams_vendor_specific(self, value: bool) -> Self

Bits: 18..19

Source

pub const fn set_ams_vendor_specific(&mut self, value: bool)

Bits: 18..19

Source

pub const fn set_ams_vendor_specific_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 18..19

Source

pub const fn reserved(&self) -> u8

Bits: 19..24

Source

pub const fn with_reserved_checked(self, value: u8) -> Result<Self, ()>

Bits: 19..24

Source

pub const fn with_reserved(self, value: u8) -> Self

Bits: 19..24

Source

pub const fn set_reserved(&mut self, value: u8)

Bits: 19..24

Source

pub const fn set_reserved_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 19..24

Source

pub const fn to(&self) -> u8

Bits: 24..32

Source

pub const fn with_to_checked(self, value: u8) -> Result<Self, ()>

Bits: 24..32

Source

pub const fn with_to(self, value: u8) -> Self

Bits: 24..32

Source

pub const fn set_to(&mut self, value: u8)

Bits: 24..32

Source

pub const fn set_to_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 24..32

Source

pub const fn dstrd(&self) -> u8

Bits: 32..36

Source

pub const fn with_dstrd_checked(self, value: u8) -> Result<Self, ()>

Bits: 32..36

Source

pub const fn with_dstrd(self, value: u8) -> Self

Bits: 32..36

Source

pub const fn set_dstrd(&mut self, value: u8)

Bits: 32..36

Source

pub const fn set_dstrd_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 32..36

Source

pub const fn nssrs(&self) -> bool

Bits: 36..37

Source

pub const fn with_nssrs_checked(self, value: bool) -> Result<Self, ()>

Bits: 36..37

Source

pub const fn with_nssrs(self, value: bool) -> Self

Bits: 36..37

Source

pub const fn set_nssrs(&mut self, value: bool)

Bits: 36..37

Source

pub const fn set_nssrs_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 36..37

Source

pub const fn css_nvm(&self) -> bool

Bits: 37..38

Source

pub const fn with_css_nvm_checked(self, value: bool) -> Result<Self, ()>

Bits: 37..38

Source

pub const fn with_css_nvm(self, value: bool) -> Self

Bits: 37..38

Source

pub const fn set_css_nvm(&mut self, value: bool)

Bits: 37..38

Source

pub const fn set_css_nvm_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 37..38

Source

pub const fn css_reserved(&self) -> u8

Bits: 38..43

Source

pub const fn with_css_reserved_checked(self, value: u8) -> Result<Self, ()>

Bits: 38..43

Source

pub const fn with_css_reserved(self, value: u8) -> Self

Bits: 38..43

Source

pub const fn set_css_reserved(&mut self, value: u8)

Bits: 38..43

Source

pub const fn set_css_reserved_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 38..43

Source

pub const fn multiple_io(&self) -> bool

Bits: 43..44

Source

pub const fn with_multiple_io_checked(self, value: bool) -> Result<Self, ()>

Bits: 43..44

Source

pub const fn with_multiple_io(self, value: bool) -> Self

Bits: 43..44

Source

pub const fn set_multiple_io(&mut self, value: bool)

Bits: 43..44

Source

pub const fn set_multiple_io_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 43..44

Source

pub const fn admin_only(&self) -> bool

Bits: 44..45

Source

pub const fn with_admin_only_checked(self, value: bool) -> Result<Self, ()>

Bits: 44..45

Source

pub const fn with_admin_only(self, value: bool) -> Self

Bits: 44..45

Source

pub const fn set_admin_only(&mut self, value: bool)

Bits: 44..45

Source

pub const fn set_admin_only_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 44..45

Source

pub const fn bps(&self) -> bool

Bits: 45..46

Source

pub const fn with_bps_checked(self, value: bool) -> Result<Self, ()>

Bits: 45..46

Source

pub const fn with_bps(self, value: bool) -> Self

Bits: 45..46

Source

pub const fn set_bps(&mut self, value: bool)

Bits: 45..46

Source

pub const fn set_bps_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 45..46

Source

pub const fn cps(&self) -> u8

Bits: 46..48

Source

pub const fn with_cps_checked(self, value: u8) -> Result<Self, ()>

Bits: 46..48

Source

pub const fn with_cps(self, value: u8) -> Self

Bits: 46..48

Source

pub const fn set_cps(&mut self, value: u8)

Bits: 46..48

Source

pub const fn set_cps_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 46..48

Source

pub const fn mpsmin(&self) -> u8

Bits: 48..52

Source

pub const fn with_mpsmin_checked(self, value: u8) -> Result<Self, ()>

Bits: 48..52

Source

pub const fn with_mpsmin(self, value: u8) -> Self

Bits: 48..52

Source

pub const fn set_mpsmin(&mut self, value: u8)

Bits: 48..52

Source

pub const fn set_mpsmin_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 48..52

Source

pub const fn mpsmax(&self) -> u8

Bits: 52..56

Source

pub const fn with_mpsmax_checked(self, value: u8) -> Result<Self, ()>

Bits: 52..56

Source

pub const fn with_mpsmax(self, value: u8) -> Self

Bits: 52..56

Source

pub const fn set_mpsmax(&mut self, value: u8)

Bits: 52..56

Source

pub const fn set_mpsmax_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 52..56

Source

pub const fn pmrs(&self) -> bool

Bits: 56..57

Source

pub const fn with_pmrs_checked(self, value: bool) -> Result<Self, ()>

Bits: 56..57

Source

pub const fn with_pmrs(self, value: bool) -> Self

Bits: 56..57

Source

pub const fn set_pmrs(&mut self, value: bool)

Bits: 56..57

Source

pub const fn set_pmrs_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 56..57

Source

pub const fn cmbs(&self) -> bool

Bits: 57..58

Source

pub const fn with_cmbs_checked(self, value: bool) -> Result<Self, ()>

Bits: 57..58

Source

pub const fn with_cmbs(self, value: bool) -> Self

Bits: 57..58

Source

pub const fn set_cmbs(&mut self, value: bool)

Bits: 57..58

Source

pub const fn set_cmbs_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 57..58

Source

pub const fn nsss(&self) -> bool

Bits: 58..59

Source

pub const fn with_nsss_checked(self, value: bool) -> Result<Self, ()>

Bits: 58..59

Source

pub const fn with_nsss(self, value: bool) -> Self

Bits: 58..59

Source

pub const fn set_nsss(&mut self, value: bool)

Bits: 58..59

Source

pub const fn set_nsss_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 58..59

Source

pub const fn crwms(&self) -> bool

Bits: 59..60

Source

pub const fn with_crwms_checked(self, value: bool) -> Result<Self, ()>

Bits: 59..60

Source

pub const fn with_crwms(self, value: bool) -> Self

Bits: 59..60

Source

pub const fn set_crwms(&mut self, value: bool)

Bits: 59..60

Source

pub const fn set_crwms_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 59..60

Source

pub const fn crims(&self) -> bool

Bits: 60..61

Source

pub const fn with_crims_checked(self, value: bool) -> Result<Self, ()>

Bits: 60..61

Source

pub const fn with_crims(self, value: bool) -> Self

Bits: 60..61

Source

pub const fn set_crims(&mut self, value: bool)

Bits: 60..61

Source

pub const fn set_crims_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 60..61

Source

pub const fn reserved2(&self) -> u64

Bits: 61..64

Source

pub const fn with_reserved2_checked(self, value: u64) -> Result<Self, ()>

Bits: 61..64

Source

pub const fn with_reserved2(self, value: u64) -> Self

Bits: 61..64

Source

pub const fn set_reserved2(&mut self, value: u64)

Bits: 61..64

Source

pub const fn set_reserved2_checked(&mut self, value: u64) -> Result<(), ()>

Bits: 61..64

Trait Implementations§

Source§

impl Clone for Cap

Source§

fn clone(&self) -> Cap

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cap

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<Cap> for u64

Source§

fn from(v: Cap) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for Cap

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Inspect for Cap

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more