Struct nvme::ds::identify::controller::VPDWriteCycleInfo
source · pub struct VPDWriteCycleInfo { /* private fields */ }
Implementations§
source§impl VPDWriteCycleInfo
impl VPDWriteCycleInfo
sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl VPDWriteCycleInfo
impl VPDWriteCycleInfo
sourcepub fn write_cycles_remaining(&self) -> <B7 as Specifier>::InOut
pub fn write_cycles_remaining(&self) -> <B7 as Specifier>::InOut
Returns the value of write_cycles_remaining.
sourcepub fn write_cycles_remaining_or_err(
&self
) -> Result<<B7 as Specifier>::InOut, InvalidBitPattern<<B7 as Specifier>::Bytes>>
pub fn write_cycles_remaining_or_err( &self ) -> Result<<B7 as Specifier>::InOut, InvalidBitPattern<<B7 as Specifier>::Bytes>>
Returns the value of write_cycles_remaining.
#Errors
If the returned value contains an invalid bit pattern for write_cycles_remaining.
sourcepub fn valid_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn valid_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of valid.
#Errors
If the returned value contains an invalid bit pattern for valid.
Trait Implementations§
source§impl Clone for VPDWriteCycleInfo
impl Clone for VPDWriteCycleInfo
source§fn clone(&self) -> VPDWriteCycleInfo
fn clone(&self) -> VPDWriteCycleInfo
Returns a copy 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 VPDWriteCycleInfo
impl Debug for VPDWriteCycleInfo
source§impl Default for VPDWriteCycleInfo
impl Default for VPDWriteCycleInfo
source§fn default() -> VPDWriteCycleInfo
fn default() -> VPDWriteCycleInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for VPDWriteCycleInfo
impl Send for VPDWriteCycleInfo
impl Sync for VPDWriteCycleInfo
impl Unpin for VPDWriteCycleInfo
impl UnwindSafe for VPDWriteCycleInfo
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