[−][src]Struct lsm::System
Represent a storage system. Examples:
-
A hardware RAID card, LSI
MegaRAID
-
A storage area network (SAN), e.g.
EMC
VNX,NetApp
Filer -
A software solution running on commodity hardware, targetd, Nexenta
-
A Linux system running NFS service
Fields
id: String
Identifier.
name: String
Human friendly name.
status: u32
System status stored in bitmap. Valid status value are:
System::STATUS_UNKNOWN
System::STATUS_OK
System::STATUS_ERROR
System::STATUS_DEGRADED
System::STATUS_PREDICTIVE_FAILURE
System::STATUS_OTHER
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:
>0 and < 100
means only a part of whole cache are used for read.0
means no read cache.100
means all cache are used for read.System::READ_CACHE_PCT_NO_SUPPORT
means no support.System::READ_CACHE_PCT_UNKNOWN
means plugin failed to detect this value.
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,