pub struct NvmeDevice {
pub name_space: u64,
pub device_path: String,
pub index: Option<u64>,
pub model_number: String,
pub product_name: Option<String>,
pub firmware: Option<String>,
pub serial_number: String,
pub used_bytes: u64,
pub maximum_lba: u64,
pub physical_size: u64,
pub sector_size: u32,
}Fields§
§name_space: u64§device_path: String§index: Option<u64>§model_number: String§product_name: Option<String>§firmware: Option<String>§serial_number: String§used_bytes: u64§maximum_lba: u64§physical_size: u64§sector_size: u32Trait Implementations§
Source§impl Clone for NvmeDevice
impl Clone for NvmeDevice
Source§fn clone(&self) -> NvmeDevice
fn clone(&self) -> NvmeDevice
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 NvmeDevice
impl Debug for NvmeDevice
Source§impl<'de> Deserialize<'de> for NvmeDevice
impl<'de> Deserialize<'de> for NvmeDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NvmeDevice
impl PartialEq for NvmeDevice
Source§impl Serialize for NvmeDevice
impl Serialize for NvmeDevice
impl Eq for NvmeDevice
impl StructuralPartialEq for NvmeDevice
Auto Trait Implementations§
impl Freeze for NvmeDevice
impl RefUnwindSafe for NvmeDevice
impl Send for NvmeDevice
impl Sync for NvmeDevice
impl Unpin for NvmeDevice
impl UnwindSafe for NvmeDevice
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