[][src]Struct hdd::drivedb::DriveMeta

pub struct DriveMeta<'a> {
    pub family: Option<&'a String>,
    pub warning: Option<&'a String>,
    // some fields omitted
}

Drive-related data that cannot be queried from the drive itself (model family, attribute presets etc.)

Fields

family: Option<&'a String>

Informal string about the model family/series of a device.

warning: Option<&'a String>

A message that may be displayed for matching drives. For example, to inform the user that they may need to apply a firmware patch.

Implementations

impl<'a> DriveMeta<'a>[src]

pub fn render_attribute(&'a self, id: u8) -> Option<Attribute>[src]

Renders attribute description for a particular attribute id.

Trait Implementations

impl<'a> Debug for DriveMeta<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for DriveMeta<'a>

impl<'a> Send for DriveMeta<'a>

impl<'a> Sync for DriveMeta<'a>

impl<'a> Unpin for DriveMeta<'a>

impl<'a> UnwindSafe for DriveMeta<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.