[][src]Struct libzetta::zpool::vdev::Vdev

pub struct Vdev { /* fields omitted */ }

Basic zpool building block.

A pool is made up of one or more vdevs, which themselves can be a single disk or a group of disks, in the case of a RAID transform. When multiple vdevs are used, ZFS spreads data across the vdevs to increase performance and maximize usable space.

Methods

impl Vdev[src]

pub fn kind(&self) -> &VdevType[src]

Type of Vdev

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

Current Health of Vdev

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

Reason why vdev is in this state

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

Backing devices for this vdev

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

How many read, write and checksum errors device encountered since last reset.

impl Vdev[src]

pub fn builder() -> VdevBuilder[src]

Create a builder - a referred way of creating Vdev structure.

Trait Implementations

impl Clone for Vdev[src]

impl Debug for Vdev[src]

impl Eq for Vdev[src]

impl PartialEq<CreateVdevRequest> for Vdev[src]

impl PartialEq<Vdev> for CreateVdevRequest[src]

impl PartialEq<Vdev> for Vdev[src]

Vdevs are equal of their type and backing disks are equal.

impl StructuralEq for Vdev[src]

Auto Trait Implementations

impl RefUnwindSafe for Vdev

impl Send for Vdev

impl Sync for Vdev

impl Unpin for Vdev

impl UnwindSafe for Vdev

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.