pub struct LidSupportedAndEffects(/* private fields */);Expand description
LID Supported and Effects Data Structure, one per LID in the Supported Log Pages log page (LID 00h). See NVMe Base 2.3 Figure 208.
Implementations§
Source§impl LidSupportedAndEffects
impl LidSupportedAndEffects
Sourcepub const fn with_lsupp_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_lsupp_checked(self, value: bool) -> Result<Self, ()>
LID Supported
Bits: 0..1
Sourcepub const fn with_lsupp(self, value: bool) -> Self
pub const fn with_lsupp(self, value: bool) -> Self
LID Supported
Bits: 0..1
Sourcepub const fn set_lsupp_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_lsupp_checked(&mut self, value: bool) -> Result<(), ()>
LID Supported
Bits: 0..1
Sourcepub const fn with_ios_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ios_checked(self, value: bool) -> Result<Self, ()>
Index Offset Supported
Bits: 1..2
Sourcepub const fn set_ios_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_ios_checked(&mut self, value: bool) -> Result<(), ()>
Index Offset Supported
Bits: 1..2
Sourcepub const fn with_lidsp_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_lidsp_checked(self, value: u16) -> Result<Self, ()>
LID Specific Parameter
Bits: 16..32
Sourcepub const fn with_lidsp(self, value: u16) -> Self
pub const fn with_lidsp(self, value: u16) -> Self
LID Specific Parameter
Bits: 16..32
Trait Implementations§
Source§impl Clone for LidSupportedAndEffects
impl Clone for LidSupportedAndEffects
Source§fn clone(&self) -> LidSupportedAndEffects
fn clone(&self) -> LidSupportedAndEffects
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 LidSupportedAndEffects
impl Debug for LidSupportedAndEffects
Source§impl Default for LidSupportedAndEffects
impl Default for LidSupportedAndEffects
Source§impl From<LidSupportedAndEffects> for u32
impl From<LidSupportedAndEffects> for u32
Source§fn from(v: LidSupportedAndEffects) -> u32
fn from(v: LidSupportedAndEffects) -> u32
Converts to this type from the input type.
Source§impl From<u32> for LidSupportedAndEffects
impl From<u32> for LidSupportedAndEffects
impl Copy for LidSupportedAndEffects
Auto Trait Implementations§
impl Freeze for LidSupportedAndEffects
impl RefUnwindSafe for LidSupportedAndEffects
impl Send for LidSupportedAndEffects
impl Sync for LidSupportedAndEffects
impl Unpin for LidSupportedAndEffects
impl UnsafeUnpin for LidSupportedAndEffects
impl UnwindSafe for LidSupportedAndEffects
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