pub enum CacheStorageError {
BlockMismatch {
expected: Box<CacheBlockId>,
actual: Box<CacheBlockId>,
},
InvalidPhase {
expected: CacheStoragePhase,
actual: CacheStoragePhase,
},
IoNotPending {
actual: CacheStoragePhase,
},
BackingAlreadyExists,
BackingRequired,
HostDemotionMismatch {
expected: u64,
actual: u64,
},
IoMismatch {
expected: Box<CacheIoOperationKey>,
actual: Box<CacheIoOperationKey>,
},
IoKindMismatch {
expected: CacheIoOperationKind,
actual: CacheIoOperationKind,
},
}Expand description
Illegal cache storage phase transition or completion observation.
Variants§
BlockMismatch
An operation belongs to a different cache block.
Fields
expected: Box<CacheBlockId>Block owned by the state machine.
actual: Box<CacheBlockId>Block owned by the presented operation.
InvalidPhase
An operation is not legal from the current phase.
Fields
expected: CacheStoragePhaseRequired source phase.
actual: CacheStoragePhaseObserved source phase.
IoNotPending
No backing-store operation is pending in the current phase.
Fields
actual: CacheStoragePhaseObserved stable or unrelated phase.
BackingAlreadyExists
A device block already had a durable backing.
BackingRequired
A direct release required a durable backing.
HostDemotionMismatch
A different host-demotion completion attempted to resolve the phase.
Fields
IoMismatch
A different backing-store completion attempted to resolve the phase.
Fields
expected: Box<CacheIoOperationKey>Operation retained by the state machine.
actual: Box<CacheIoOperationKey>Operation presented by the backend.
IoKindMismatch
A read/write completion was submitted to the opposite transition.
Fields
expected: CacheIoOperationKindRequired operation direction.
actual: CacheIoOperationKindObserved operation direction.
Trait Implementations§
Source§impl Clone for CacheStorageError
impl Clone for CacheStorageError
Source§fn clone(&self) -> CacheStorageError
fn clone(&self) -> CacheStorageError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CacheStorageError
impl Debug for CacheStorageError
Source§impl Display for CacheStorageError
impl Display for CacheStorageError
impl Eq for CacheStorageError
Source§impl Error for CacheStorageError
impl Error for CacheStorageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()