#[repr(C)]
pub struct nvme_smart_log {
Show 24 fields pub critical_warning: __u8, pub temperature: [__u8; 2], pub avail_spare: __u8, pub spare_thresh: __u8, pub percent_used: __u8, pub rsvd6: [__u8; 26], pub data_units_read: [__u8; 16], pub data_units_written: [__u8; 16], pub host_reads: [__u8; 16], pub host_writes: [__u8; 16], pub ctrl_busy_time: [__u8; 16], pub power_cycles: [__u8; 16], pub power_on_hours: [__u8; 16], pub unsafe_shutdowns: [__u8; 16], pub media_errors: [__u8; 16], pub num_err_log_entries: [__u8; 16], pub warning_temp_time: __le32, pub critical_comp_time: __le32, pub temp_sensor: [__le16; 8], pub thm_temp1_trans_count: __le32, pub thm_temp2_trans_count: __le32, pub thm_temp1_total_time: __le32, pub thm_temp2_total_time: __le32, pub rsvd232: [__u8; 280],
}

Fields§

§critical_warning: __u8§temperature: [__u8; 2]§avail_spare: __u8§spare_thresh: __u8§percent_used: __u8§rsvd6: [__u8; 26]§data_units_read: [__u8; 16]§data_units_written: [__u8; 16]§host_reads: [__u8; 16]§host_writes: [__u8; 16]§ctrl_busy_time: [__u8; 16]§power_cycles: [__u8; 16]§power_on_hours: [__u8; 16]§unsafe_shutdowns: [__u8; 16]§media_errors: [__u8; 16]§num_err_log_entries: [__u8; 16]§warning_temp_time: __le32§critical_comp_time: __le32§temp_sensor: [__le16; 8]§thm_temp1_trans_count: __le32§thm_temp2_trans_count: __le32§thm_temp1_total_time: __le32§thm_temp2_total_time: __le32§rsvd232: [__u8; 280]

Trait Implementations§

source§

impl Clone for nvme_smart_log

source§

fn clone(&self) -> nvme_smart_log

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 nvme_smart_log

source§

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

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

impl Default for nvme_smart_log

source§

fn default() -> Self

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

impl PartialEq<nvme_smart_log> for nvme_smart_log

source§

fn eq(&self, other: &nvme_smart_log) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for nvme_smart_log

source§

impl Eq for nvme_smart_log

source§

impl StructuralEq for nvme_smart_log

source§

impl StructuralPartialEq for nvme_smart_log

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.