#[non_exhaustive]pub enum IoClass {
Commit,
Read,
Background,
}Expand description
The class of an I/O (PLANNING R5.4): what a device’s pacing does with it. Pacing changes when background work reaches the device, never what is written or when it is durable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Commit
Work a caller waits on: every blocking write, batch and slot commit,
and a Submitter’s writes unless configured otherwise. Never paced;
its flushes mark its device’s commits active.
Read
A blocking read. Never paced, never counted as activity.
Background
Background work: scans, read streams, export, import, copy_store,
unshare, and Submitters configured so. Always split into pieces;
paced while the device’s commits are active.
Implementations§
Source§impl IoClass
impl IoClass
Sourcepub const fn is_background(self) -> bool
pub const fn is_background(self) -> bool
Whether this class is paced (only Self::Background).
Sourcepub const fn is_commit(self) -> bool
pub const fn is_commit(self) -> bool
Whether this class’s flushes and writes mark commits active (only
Self::Commit).
Trait Implementations§
impl Copy for IoClass
impl Eq for IoClass
impl StructuralPartialEq for IoClass
Auto Trait Implementations§
impl Forget for IoClass
impl Freeze for IoClass
impl Move for IoClass
impl RefUnwindSafe for IoClass
impl Send for IoClass
impl Sync for IoClass
impl Unpin for IoClass
impl UnsafeUnpin for IoClass
impl UnwindSafe for IoClass
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