Struct nvme::ds::identify::controller::NvmSubsystemReport
source · pub struct NvmSubsystemReport { /* private fields */ }
Implementations§
source§impl NvmSubsystemReport
impl NvmSubsystemReport
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 NvmSubsystemReport
impl NvmSubsystemReport
sourcepub fn nvme_storage_device(&self) -> <B1 as Specifier>::InOut
pub fn nvme_storage_device(&self) -> <B1 as Specifier>::InOut
Returns the value of nvme_storage_device.
sourcepub fn nvme_storage_device_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn nvme_storage_device_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of nvme_storage_device.
#Errors
If the returned value contains an invalid bit pattern for nvme_storage_device.
sourcepub fn nvme_enclosure(&self) -> <B1 as Specifier>::InOut
pub fn nvme_enclosure(&self) -> <B1 as Specifier>::InOut
Returns the value of nvme_enclosure.
sourcepub fn nvme_enclosure_or_err(
&self
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn nvme_enclosure_or_err( &self ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of nvme_enclosure.
#Errors
If the returned value contains an invalid bit pattern for nvme_enclosure.
Trait Implementations§
source§impl Clone for NvmSubsystemReport
impl Clone for NvmSubsystemReport
source§fn clone(&self) -> NvmSubsystemReport
fn clone(&self) -> NvmSubsystemReport
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 NvmSubsystemReport
impl Debug for NvmSubsystemReport
source§impl Default for NvmSubsystemReport
impl Default for NvmSubsystemReport
source§fn default() -> NvmSubsystemReport
fn default() -> NvmSubsystemReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NvmSubsystemReport
impl Send for NvmSubsystemReport
impl Sync for NvmSubsystemReport
impl Unpin for NvmSubsystemReport
impl UnwindSafe for NvmSubsystemReport
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