pub struct DiskDegradationState {
pub kind: DiskEpisodeKind,
pub expires_at: Duration,
}Expand description
Active disk-degradation episode (stall or throttle) on a process’s disk, with expiry.
Per-owner state (keyed by owning process IP in StorageState::disk_episodes),
evaluated before each latency calculation in schedule_{read,write,sync}: a
single episode applies to every file owned by that process for its duration.
Mirrors the existing ClogState / PartitionState expiry pattern.
Fields§
§kind: DiskEpisodeKindWhich kind of degradation is active.
expires_at: DurationWhen the episode expires (in simulation time).
Trait Implementations§
Source§impl Clone for DiskDegradationState
impl Clone for DiskDegradationState
Source§fn clone(&self) -> DiskDegradationState
fn clone(&self) -> DiskDegradationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiskDegradationState
Auto Trait Implementations§
impl Freeze for DiskDegradationState
impl RefUnwindSafe for DiskDegradationState
impl Send for DiskDegradationState
impl Sync for DiskDegradationState
impl Unpin for DiskDegradationState
impl UnsafeUnpin for DiskDegradationState
impl UnwindSafe for DiskDegradationState
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