[−][src]Struct libzetta::zpool::vdev::DiskBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
How many read, write and checksum errors device encountered since last reset.
pub fn build(&self) -> Result<Disk, String>
[src]
Trait Implementations
impl Clone for DiskBuilder
[src]
fn clone(&self) -> DiskBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DiskBuilder
[src]
fn default() -> DiskBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DiskBuilder
impl Send for DiskBuilder
impl Sync for DiskBuilder
impl Unpin for DiskBuilder
impl UnwindSafe for DiskBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,