Struct linux_nvme_sys::nvme_smart_log
source · #[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
impl Clone for nvme_smart_log
source§fn clone(&self) -> nvme_smart_log
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for nvme_smart_log
impl Debug for nvme_smart_log
source§impl Default for nvme_smart_log
impl Default for nvme_smart_log
source§impl PartialEq<nvme_smart_log> for nvme_smart_log
impl PartialEq<nvme_smart_log> for nvme_smart_log
source§fn eq(&self, other: &nvme_smart_log) -> bool
fn eq(&self, other: &nvme_smart_log) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for nvme_smart_log
impl Eq for nvme_smart_log
impl StructuralEq for nvme_smart_log
impl StructuralPartialEq for nvme_smart_log
Auto Trait Implementations§
impl RefUnwindSafe for nvme_smart_log
impl Send for nvme_smart_log
impl Sync for nvme_smart_log
impl Unpin for nvme_smart_log
impl UnwindSafe for nvme_smart_log
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