pub enum PrefetchStateError {
ZeroQueueCapacity,
GenerationExhausted,
WorkNotQueued {
id: OffloadUnitId,
generation: u64,
},
WorkNotInFlight {
id: OffloadUnitId,
generation: u64,
},
CompletionGenerationMismatch {
id: OffloadUnitId,
expected: u64,
actual: u64,
},
DemandStillPending {
id: OffloadUnitId,
},
CancellationStillInFlight,
}Expand description
Invalid use of the prefetch execution lifecycle.
Variants§
ZeroQueueCapacity
Bounded admission requires at least one queue slot.
GenerationExhausted
The monotonic cancellation generation cannot advance safely.
WorkNotQueued
Backend notification rollback did not refer to admitted queued work.
Fields
§
id: OffloadUnitIdLogical unit in the invalid operation.
WorkNotInFlight
Completion did not refer to backend-submitted work.
Fields
§
id: OffloadUnitIdLogical unit in the invalid operation.
CompletionGenerationMismatch
Completion used a different exact generation from the active operation.
Fields
§
id: OffloadUnitIdLogical unit in the invalid operation.
DemandStillPending
Demand attempted to consume a nonterminal operation.
Fields
§
id: OffloadUnitIdLogical unit whose operation is nonterminal.
CancellationStillInFlight
Cancellation finalization preceded exact in-flight completion.
Trait Implementations§
Source§impl Clone for PrefetchStateError
impl Clone for PrefetchStateError
Source§fn clone(&self) -> PrefetchStateError
fn clone(&self) -> PrefetchStateError
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 moreSource§impl Debug for PrefetchStateError
impl Debug for PrefetchStateError
Source§impl Display for PrefetchStateError
impl Display for PrefetchStateError
impl Eq for PrefetchStateError
Source§impl Error for PrefetchStateError
impl Error for PrefetchStateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PrefetchStateError
impl PartialEq for PrefetchStateError
impl StructuralPartialEq for PrefetchStateError
Auto Trait Implementations§
impl Freeze for PrefetchStateError
impl RefUnwindSafe for PrefetchStateError
impl Send for PrefetchStateError
impl Sync for PrefetchStateError
impl Unpin for PrefetchStateError
impl UnsafeUnpin for PrefetchStateError
impl UnwindSafe for PrefetchStateError
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