#[repr(C)]pub struct SkSmartAttributeParsedData {
pub id: u8,
pub name: *const c_char,
pub pretty_unit: SkSmartAttributeUnit,
pub flags: u16,
pub threshold: u8,
pub threshold_valid_online_prefailure_good_now_good_now_valid_good_in_the_past_good_in_the_past_valid_current_value_valid_worst_value_valid_warn: [u8; 2],
pub current_value: u8,
pub worst_value: u8,
pub pretty_value: u64,
pub raw: [u8; 6],
}Fields§
§id: u8§name: *const c_char§pretty_unit: SkSmartAttributeUnit§flags: u16§threshold: u8§threshold_valid_online_prefailure_good_now_good_now_valid_good_in_the_past_good_in_the_past_valid_current_value_valid_worst_value_valid_warn: [u8; 2]§current_value: u8§worst_value: u8§pretty_value: u64§raw: [u8; 6]Implementations§
Source§impl SkSmartAttributeParsedData
impl SkSmartAttributeParsedData
Sourcepub fn set_threshold_valid(&mut self, int: SkBool)
pub fn set_threshold_valid(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn threshold_valid(&self) -> SkBool
pub fn threshold_valid(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_online(&mut self, int: SkBool)
pub fn set_online(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn set_prefailure(&mut self, int: SkBool)
pub fn set_prefailure(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn prefailure(&self) -> SkBool
pub fn prefailure(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_good_now(&mut self, int: SkBool)
pub fn set_good_now(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn set_good_now_valid(&mut self, int: SkBool)
pub fn set_good_now_valid(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn good_now_valid(&self) -> SkBool
pub fn good_now_valid(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_good_in_the_past(&mut self, int: SkBool)
pub fn set_good_in_the_past(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn good_in_the_past(&self) -> SkBool
pub fn good_in_the_past(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_good_in_the_past_valid(&mut self, int: SkBool)
pub fn set_good_in_the_past_valid(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn good_in_the_past_valid(&self) -> SkBool
pub fn good_in_the_past_valid(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_current_value_valid(&mut self, int: SkBool)
pub fn set_current_value_valid(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn current_value_valid(&self) -> SkBool
pub fn current_value_valid(&self) -> SkBool
This method allows you to read from a bitfield to a value
Sourcepub fn set_worst_value_valid(&mut self, int: SkBool)
pub fn set_worst_value_valid(&mut self, int: SkBool)
This method allows you to write to a bitfield with a value
Sourcepub fn worst_value_valid(&self) -> SkBool
pub fn worst_value_valid(&self) -> SkBool
This method allows you to read from a bitfield to a value
Trait Implementations§
Source§impl Clone for SkSmartAttributeParsedData
impl Clone for SkSmartAttributeParsedData
Source§fn clone(&self) -> SkSmartAttributeParsedData
fn clone(&self) -> SkSmartAttributeParsedData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more