pub struct Attribute {
pub id: Option<u8>,
pub name: Option<String>,
pub format: String,
pub byte_order: String,
pub drivetype: Option<Type>,
}Expand description
SMART attribute description
Fields§
§id: Option<u8>id of described attribute
name: Option<String>attribute name
format: Stringvalue format, like raw48 or tempminmax
byte_order: Stringbytes of attribute data to make value of (usually something like r543210, where r, v, w represent reserved byte, current and worst values respectively)
drivetype: Option<Type>what kind of device this description is applicable to: HDD, SSD, or both
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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