Skip to main content

Id

Struct Id 

Source
pub struct Id {
Show 24 fields pub is_ata: bool, pub incomplete: bool, pub serial: String, pub firmware: String, pub model: String, pub capacity: u64, pub sector_size_phy: u32, pub sector_size_log: u32, pub rpm: RPM, pub trusted_computing_supported: bool, pub ata_version: Option<&'static str>, pub commands_supported: IdCommands, pub power_mgmt_supported: bool, pub write_cache: Ternary, pub read_look_ahead: Ternary, pub hpa: Ternary, pub apm: Ternary, pub aam: Ternary, pub gp_logging_supported: bool, pub wwn_supported: bool, pub security: Ternary, pub smart: Ternary, pub smart_error_logging_supported: bool, pub smart_self_test_supported: bool,
}

Fields§

§is_ata: bool§incomplete: bool§serial: String§firmware: String§model: String§capacity: u64§sector_size_phy: u32§sector_size_log: u32§rpm: RPM§trusted_computing_supported: bool§ata_version: Option<&'static str>§commands_supported: IdCommands§power_mgmt_supported: bool§write_cache: Ternary§read_look_ahead: Ternary§hpa: Ternary§apm: Ternary§aam: Ternary§gp_logging_supported: bool§wwn_supported: bool§security: Ternary§smart: Ternary§smart_error_logging_supported: bool§smart_self_test_supported: bool

Trait Implementations§

Source§

impl Debug for Id

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Id

§

impl RefUnwindSafe for Id

§

impl Send for Id

§

impl Sync for Id

§

impl Unpin for Id

§

impl UnsafeUnpin for Id

§

impl UnwindSafe for Id

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.