pub enum PrefetchDemandObservation {
Queued,
InFlight,
Ready,
Failed,
Unscheduled,
}Expand description
State observed when demand first asks for one logical unit.
Variants§
Queued
The operation is admitted but has not been submitted to the backend.
InFlight
The backend operation is in flight.
Ready
A successful prefetch is ready to consume.
Failed
A backend failure is retained for demand.
Unscheduled
No background operation owns the unit.
Implementations§
Source§impl PrefetchDemandObservation
impl PrefetchDemandObservation
Sourcepub const fn is_pending(self) -> bool
pub const fn is_pending(self) -> bool
Whether demand must wait for a terminal transition.
Trait Implementations§
Source§impl Clone for PrefetchDemandObservation
impl Clone for PrefetchDemandObservation
Source§fn clone(&self) -> PrefetchDemandObservation
fn clone(&self) -> PrefetchDemandObservation
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 PrefetchDemandObservation
Source§impl Debug for PrefetchDemandObservation
impl Debug for PrefetchDemandObservation
impl Eq for PrefetchDemandObservation
impl StructuralPartialEq for PrefetchDemandObservation
Auto Trait Implementations§
impl Freeze for PrefetchDemandObservation
impl RefUnwindSafe for PrefetchDemandObservation
impl Send for PrefetchDemandObservation
impl Sync for PrefetchDemandObservation
impl Unpin for PrefetchDemandObservation
impl UnsafeUnpin for PrefetchDemandObservation
impl UnwindSafe for PrefetchDemandObservation
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