Struct swap::SwapStateTransition
source · #[repr(C)]pub struct SwapStateTransition {
pub pages: u64,
pub time_ms: u64,
}
Expand description
Latency and number of pages of swap operations (move to staging, swap out, swap in).
The meaning of StateTransition
depends on State
.
State | StateTransition |
---|---|
Ready | empty or transition record of swap disable |
Pending | transition record of swap enable |
SwapOutInProgress | transition record of swap out |
Active | transition record of swap out |
SwapInInProgress | transition record of swap disable |
Failed | empty |
Fields§
§pages: u64
The number of pages moved for the state transition.
time_ms: u64
Time taken for the state transition.
Trait Implementations§
source§impl Clone for SwapStateTransition
impl Clone for SwapStateTransition
source§fn clone(&self) -> SwapStateTransition
fn clone(&self) -> SwapStateTransition
Returns a copy 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 moresource§impl Debug for SwapStateTransition
impl Debug for SwapStateTransition
source§impl Default for SwapStateTransition
impl Default for SwapStateTransition
source§fn default() -> SwapStateTransition
fn default() -> SwapStateTransition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SwapStateTransition
impl<'de> Deserialize<'de> for SwapStateTransition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SwapStateTransition
impl Serialize for SwapStateTransition
impl Copy for SwapStateTransition
Auto Trait Implementations§
impl RefUnwindSafe for SwapStateTransition
impl Send for SwapStateTransition
impl Sync for SwapStateTransition
impl Unpin for SwapStateTransition
impl UnwindSafe for SwapStateTransition
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