[][src]Struct libzetta::zpool::description::Zpool

pub struct Zpool { /* fields omitted */ }

Consumer friendly Zpool representation. It has generic health status information, structure of vdevs, devices used to create said vdevs as well as error statistics.

Methods

impl Zpool[src]

pub fn name(&self) -> &String[src]

Name of the pool

pub fn id(&self) -> &Option<u64>[src]

UID of the pool. Only visible during import

pub fn health(&self) -> &Health[src]

Current Health status of the pool.

pub fn vdevs(&self) -> &Vec<Vdev>[src]

List of VDEVs

pub fn caches(&self) -> &Vec<Disk>[src]

List of cache devices.

pub fn logs(&self) -> &Vec<Vdev>[src]

ZFS Intent Log (ZIL) devices.

pub fn spares(&self) -> &Vec<Disk>[src]

Spare devices.

pub fn action(&self) -> &Option<String>[src]

Value of action field what ever it is.

pub fn errors(&self) -> &Option<String>[src]

Errors?

pub fn reason(&self) -> &Option<Reason>[src]

Reason why this Zpool is not healthy.

pub fn error_statistics(&self) -> &ErrorStatistics[src]

Error statistics

impl Zpool[src]

pub fn builder() -> ZpoolBuilder[src]

Create a builder - the preferred way to create a structure.

Trait Implementations

impl Clone for Zpool[src]

impl Debug for Zpool[src]

impl Eq for Zpool[src]

impl PartialEq<CreateZpoolRequest> for Zpool[src]

impl PartialEq<Zpool> for Zpool[src]

impl PartialEq<Zpool> for CreateZpoolRequest[src]

impl StructuralEq for Zpool[src]

impl StructuralPartialEq for Zpool[src]

Auto Trait Implementations

impl RefUnwindSafe for Zpool

impl Send for Zpool

impl Sync for Zpool

impl Unpin for Zpool

impl UnwindSafe for Zpool

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.