[][src]Struct lsm::System

pub struct System {
    pub id: String,
    pub name: String,
    pub status: u32,
    pub status_info: String,
    pub fw_version: String,
    pub read_cache_pct: i8,
    pub mode: SystemMode,
    // some fields omitted
}

Represent a storage system. Examples:

Fields

id: String

Identifier.

name: String

Human friendly name.

status: u32

System status stored in bitmap. Valid status value are:

if (s.status & System::STATUS_OK) == 0 {
    println!("System {}/{} is not healthy", s.name, s.id);
}
status_info: String

Additional message for status.

fw_version: String

Firmware version.

read_cache_pct: i8

Read cache percentage of the system. Valid values are:

mode: SystemMode

System mode, currently only supports hardware RAID cards.

Methods

impl System[src]

pub const READ_CACHE_PCT_NO_SUPPORT: i8[src]

Plugin does not support querying read cache percentage.

pub const READ_CACHE_PCT_UNKNOWN: i8[src]

Plugin failed to query read cache percentage.

pub const STATUS_UNKNOWN: u32[src]

Plugin failed to query system status.

pub const STATUS_OK: u32[src]

System is up and healthy.

pub const STATUS_ERROR: u32[src]

System is in error state.

pub const STATUS_DEGRADED: u32[src]

System is degraded.

pub const STATUS_PREDICTIVE_FAILURE: u32[src]

System has potential failure.

pub const STATUS_OTHER: u32[src]

Vendor specific status.

Trait Implementations

impl Clone for System[src]

impl Debug for System[src]

impl<'de> Deserialize<'de> for System[src]

impl Serialize for System[src]

Auto Trait Implementations

impl RefUnwindSafe for System

impl Send for System

impl Sync for System

impl Unpin for System

impl UnwindSafe for System

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.