pub struct RaidDisk {
pub id: u32,
pub path: String,
pub state: DiskState,
pub size_blocks: u64,
pub last_error_tick: u64,
}Expand description
A physical disk member of a RAID array.
Fields§
§id: u32Disk identifier.
path: StringDevice path (e.g., “/dev/vda”).
state: DiskStateCurrent state.
size_blocks: u64Size in blocks.
last_error_tick: u64Tick count of last error (0 = no error).
Implementations§
Source§impl RaidDisk
impl RaidDisk
Sourcepub fn mark_failed(&mut self, tick: u64)
pub fn mark_failed(&mut self, tick: u64)
Mark disk as failed.
Sourcepub fn mark_rebuilding(&mut self)
pub fn mark_rebuilding(&mut self)
Mark disk as rebuilding.
Sourcepub fn mark_active(&mut self)
pub fn mark_active(&mut self)
Mark disk as active.
Trait Implementations§
impl StructuralPartialEq for RaidDisk
Auto Trait Implementations§
impl Freeze for RaidDisk
impl RefUnwindSafe for RaidDisk
impl Send for RaidDisk
impl Sync for RaidDisk
impl Unpin for RaidDisk
impl UnwindSafe for RaidDisk
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)