Enum generational_cache::cache::lru_cache::LRUCacheError
source · pub enum LRUCacheError<VE, ME> {
ListError(ListError<VE>),
ListUnderflow,
MapListInconsistent,
MapError(ME),
}
Expand description
Error type associated with LRUCache
operations.
Variants§
ListError(ListError<VE>)
Used when there is an error on an operation in the underlying list.
ListUnderflow
Used when attempting to remove elements from the underlying list when its empty.
MapListInconsistent
Used when the underlying map and list instances contain an inconsistent view of the entries allocated in the LRUCache
MapError(ME)
Used when there is an error on an operation in the underlying map..
Trait Implementations§
Auto Trait Implementations§
impl<VE, ME> RefUnwindSafe for LRUCacheError<VE, ME>where ME: RefUnwindSafe, VE: RefUnwindSafe,
impl<VE, ME> Send for LRUCacheError<VE, ME>where ME: Send, VE: Send,
impl<VE, ME> Sync for LRUCacheError<VE, ME>where ME: Sync, VE: Sync,
impl<VE, ME> Unpin for LRUCacheError<VE, ME>where ME: Unpin, VE: Unpin,
impl<VE, ME> UnwindSafe for LRUCacheError<VE, ME>where ME: UnwindSafe, VE: UnwindSafe,
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