#[repr(u8)]pub enum IoCacheStateV2 {
Cold = 1,
Warm = 2,
Direct = 3,
}Expand description
Explicitly observed page-cache state for one source of IO work.
Callers record what they know from how the IO was performed (for example
O_DIRECT, an fadvise cold read, or a re-read of warm data). The
profiler never infers a state from latency; unknown stays unrecorded.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for IoCacheStateV2
impl Clone for IoCacheStateV2
Source§fn clone(&self) -> IoCacheStateV2
fn clone(&self) -> IoCacheStateV2
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 IoCacheStateV2
Source§impl Debug for IoCacheStateV2
impl Debug for IoCacheStateV2
Source§impl<'de> Deserialize<'de> for IoCacheStateV2
impl<'de> Deserialize<'de> for IoCacheStateV2
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
impl Eq for IoCacheStateV2
Source§impl PartialEq for IoCacheStateV2
impl PartialEq for IoCacheStateV2
Source§impl Serialize for IoCacheStateV2
impl Serialize for IoCacheStateV2
impl StructuralPartialEq for IoCacheStateV2
Auto Trait Implementations§
impl Freeze for IoCacheStateV2
impl RefUnwindSafe for IoCacheStateV2
impl Send for IoCacheStateV2
impl Sync for IoCacheStateV2
impl Unpin for IoCacheStateV2
impl UnsafeUnpin for IoCacheStateV2
impl UnwindSafe for IoCacheStateV2
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