Struct linux_info::storage::Raid [−][src]
A raid device.
Implementations
impl<'a> Raid<'a>[src]
pub fn values(&self) -> impl Iterator<Item = impl Iterator<Item = &'a str>>[src]
Returns every line and their values with out the name.
pub fn name(&self) -> &'a str[src]
The name of the raid for example md0.
pub fn state(&self) -> Option<&'a str>[src]
The state of the current device.
pub fn kind(&self) -> Option<&'a str>[src]
Returns the kind of raid device.
Maybe in the future will return an enum.
pub fn devices(&self) -> impl Iterator<Item = (usize, &'a str)>[src]
Returns all devices (id, name) in this raid array.
pub fn usable_blocks(&self) -> Option<usize>[src]
Returns all usable blocks.
pub fn used_devices(&self) -> Option<usize>[src]
The amount of devices that are currently used. Should
be raid.used_devices()? == raid.devices().count().
pub fn ideal_devices(&self) -> Option<usize>[src]
The amount of devices that would be ideal for this array configuration.
pub fn progress(&self) -> Option<&'a str>[src]
Returns the progress line if there is any, for example:
[==>..................] recovery = 12.6% (37043392/292945152) finish=127.5min speed=33440K/sec
pub fn stats(&self) -> Result<FsStat>[src]
Returns filesystem statistics to this raid array.
Trait Implementations
impl<'a> Clone for Raid<'a>[src]
impl<'a> Debug for Raid<'a>[src]
impl<'a> Eq for Raid<'a>[src]
impl<'a> PartialEq<Raid<'a>> for Raid<'a>[src]
impl<'a> StructuralEq for Raid<'a>[src]
impl<'a> StructuralPartialEq for Raid<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Raid<'a>
impl<'a> Send for Raid<'a>
impl<'a> Sync for Raid<'a>
impl<'a> Unpin for Raid<'a>
impl<'a> UnwindSafe for Raid<'a>
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,