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

pub struct DiskBuilder { /* fields omitted */ }

Builder for Disk.

Methods

impl DiskBuilder[src]

pub fn path<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self[src]

Path to a backing device or file. If path is relative, then it's relative to /dev/.

pub fn health<VALUE: Into<Health>>(&mut self, value: VALUE) -> &mut Self[src]

Current health of this specific device.

pub fn reason<VALUE: Into<Option<Reason>>>(&mut self, value: VALUE) -> &mut Self[src]

Reason why device is in this state.

pub fn error_statistics<VALUE: Into<ErrorStatistics>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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

pub fn build(&self) -> Result<Disk, String>[src]

Builds a new Disk.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for DiskBuilder[src]

impl Default for DiskBuilder[src]

Auto Trait Implementations

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.