pub enum CacheLifecycleError {
DuplicateBlock(CacheBlockId),
MissingBlock(CacheBlockId),
DuplicateRemoval,
BlockLeased(CacheBlockId),
UnexpectedLeaseCount {
id: CacheBlockId,
expected: usize,
actual: usize,
},
LeaseOverflow(CacheBlockId),
LeaseUnderflow(CacheBlockId),
AccessClockOverflow,
}Expand description
Invalid backend-neutral cache ownership transition.
Variants§
DuplicateBlock(CacheBlockId)
A block identity was registered more than once.
MissingBlock(CacheBlockId)
A requested block is not registered.
DuplicateRemoval
A removal list repeated one identity.
BlockLeased(CacheBlockId)
An operation required an unleased block.
UnexpectedLeaseCount
A transactional replacement observed a different lease count.
Fields
§
id: CacheBlockIdStable block identity.
LeaseOverflow(CacheBlockId)
Lease acquisition exceeded addressable ownership.
LeaseUnderflow(CacheBlockId)
A backend released a lease it did not own.
AccessClockOverflow
The stable access clock exhausted its range.
Trait Implementations§
Source§impl Clone for CacheLifecycleError
impl Clone for CacheLifecycleError
Source§fn clone(&self) -> CacheLifecycleError
fn clone(&self) -> CacheLifecycleError
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 CacheLifecycleError
impl Debug for CacheLifecycleError
Source§impl Display for CacheLifecycleError
impl Display for CacheLifecycleError
impl Eq for CacheLifecycleError
Source§impl Error for CacheLifecycleError
impl Error for CacheLifecycleError
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 CacheLifecycleError
impl PartialEq for CacheLifecycleError
impl StructuralPartialEq for CacheLifecycleError
Auto Trait Implementations§
impl Freeze for CacheLifecycleError
impl RefUnwindSafe for CacheLifecycleError
impl Send for CacheLifecycleError
impl Sync for CacheLifecycleError
impl Unpin for CacheLifecycleError
impl UnsafeUnpin for CacheLifecycleError
impl UnwindSafe for CacheLifecycleError
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