pub struct Disk { /* private fields */ }Expand description
Basic building block of vdev.
It can be backed by a entire block device, a partition or a file. This particular structure represents backing of existing vdev. If disk is part of active zpool then it will also have error counts.
Implementations§
Source§impl Disk
impl Disk
Sourcepub fn path(&self) -> &PathBuf
pub fn path(&self) -> &PathBuf
Path to a backing device or file. If path is relative, then it’s
relative to /dev/.
Sourcepub fn error_statistics(&self) -> &ErrorStatistics
pub fn error_statistics(&self) -> &ErrorStatistics
How many read, write and checksum errors device encountered since last reset.
Trait Implementations§
impl Eq for Disk
Auto Trait Implementations§
impl Freeze for Disk
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnsafeUnpin for Disk
impl UnwindSafe for Disk
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