[−][src]Struct libzetta::zpool::description::Zpool
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]
fn eq(&self, other: &CreateZpoolRequest) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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>,