pub struct DeviceReplaceItem {
pub src_devid: u64,
pub cursor_left: u64,
pub cursor_right: u64,
pub replace_mode: u64,
pub replace_state: u64,
pub time_started: u64,
pub time_stopped: u64,
pub num_write_errors: u64,
pub num_uncorrectable_read_errors: u64,
}Expand description
Device replace status, persisted across reboots.
Key: (DEV_REPLACE, PERSISTENT_ITEM, 0).
Fields§
§src_devid: u64Device ID of the source device being replaced.
cursor_left: u64Left cursor position (bytes processed from left).
cursor_right: u64Right cursor position.
replace_mode: u64Replace mode (continuous = 0 or legacy).
replace_state: u64Current state (not started, started, suspended, etc.).
time_started: u64Unix timestamp when the replace operation started.
time_stopped: u64Unix timestamp when the replace operation completed or was cancelled.
num_write_errors: u64Number of write errors during replace.
num_uncorrectable_read_errors: u64Number of uncorrectable read errors during replace.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceReplaceItem
impl Clone for DeviceReplaceItem
Source§fn clone(&self) -> DeviceReplaceItem
fn clone(&self) -> DeviceReplaceItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceReplaceItem
impl RefUnwindSafe for DeviceReplaceItem
impl Send for DeviceReplaceItem
impl Sync for DeviceReplaceItem
impl Unpin for DeviceReplaceItem
impl UnsafeUnpin for DeviceReplaceItem
impl UnwindSafe for DeviceReplaceItem
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