pub struct ZfsPool {
pub name: String,
pub state: String,
}Expand description
A ZFS pool and its health.
Fields§
§name: StringPool name (e.g. "tank").
state: StringHealth as zpool status shows it: ONLINE, DEGRADED, FAULTED,
OFFLINE, UNAVAIL, REMOVED or SUSPENDED.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZfsPool
impl<'de> Deserialize<'de> for ZfsPool
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
Auto Trait Implementations§
impl Freeze for ZfsPool
impl RefUnwindSafe for ZfsPool
impl Send for ZfsPool
impl Sync for ZfsPool
impl Unpin for ZfsPool
impl UnsafeUnpin for ZfsPool
impl UnwindSafe for ZfsPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more