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: String,
dev_id: Option<String>,
phys_path: Option<String>,
whole_disk: Option<bool>,
is_log: Option<bool>,
},
File {
guid: Option<u64>,
state: String,
path: String,
is_log: Option<bool>,
},
}
Expand description
Represents vdevs The enum starts at Root and is recursive.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for VDev
impl<'de> Deserialize<'de> for VDev
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more