[][src]Enum libzfs_types::VDev

pub enum VDev {
    Mirror {
        children: Vec<VDev>,
        is_log: Option<bool>,
    },
    RaidZ {
        children: Vec<VDev>,
    },
    Replacing {
        children: Vec<VDev>,
    },
    Root {
        children: Vec<VDev>,
        spares: Vec<VDev>,
        cache: Vec<VDev>,
    },
    Disk {
        guid: Option<u64>,
        state: String,
        path: PathBuf,
        dev_id: Option<String>,
        phys_path: Option<String>,
        whole_disk: Option<bool>,
        is_log: Option<bool>,
    },
    File {
        guid: Option<u64>,
        state: String,
        path: PathBuf,
        is_log: Option<bool>,
    },
}

Variants

Mirror

Fields of Mirror

children: Vec<VDev>is_log: Option<bool>
RaidZ

Fields of RaidZ

children: Vec<VDev>
Replacing

Fields of Replacing

children: Vec<VDev>
Root

Fields of Root

children: Vec<VDev>spares: Vec<VDev>cache: Vec<VDev>
Disk

Fields of Disk

guid: Option<u64>state: Stringpath: PathBufdev_id: Option<String>phys_path: Option<String>whole_disk: Option<bool>is_log: Option<bool>
File

Fields of File

guid: Option<u64>state: Stringpath: PathBufis_log: Option<bool>

Trait Implementations

impl Clone for VDev[src]

impl Debug for VDev[src]

impl<'de> Deserialize<'de> for VDev[src]

impl Eq for VDev[src]

impl Hash for VDev[src]

impl Ord for VDev[src]

impl PartialEq<VDev> for VDev[src]

impl PartialOrd<VDev> for VDev[src]

impl Serialize for VDev[src]

impl StructuralEq for VDev[src]

impl StructuralPartialEq 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.