pub struct DiskHealth {
pub device: String,
pub model: String,
pub kind: String,
pub total_bytes: u64,
pub available_bytes: u64,
pub temperature_c: Option<i32>,
pub power_on_hours: Option<u64>,
pub reallocated_sectors: Option<u64>,
pub wear_level_percent: Option<u8>,
pub status: HealthStatus,
pub smart_available: bool,
}Fields§
§device: String§model: String§kind: String§total_bytes: u64§available_bytes: u64§temperature_c: Option<i32>§power_on_hours: Option<u64>§reallocated_sectors: Option<u64>§wear_level_percent: Option<u8>§status: HealthStatus§smart_available: boolTrait Implementations§
Source§impl Clone for DiskHealth
impl Clone for DiskHealth
Source§impl Debug for DiskHealth
impl Debug for DiskHealth
Auto Trait Implementations§
impl Freeze for DiskHealth
impl RefUnwindSafe for DiskHealth
impl Send for DiskHealth
impl Sync for DiskHealth
impl Unpin for DiskHealth
impl UnsafeUnpin for DiskHealth
impl UnwindSafe for DiskHealth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more