pub enum EvictError<F: FrameId> {
InvalidFrameId(F),
PinnedFrameRemoval(F),
FrameReplacerFull,
InvalidTimestamp,
NoFramesAvailable,
SequenceExhausted,
}Expand description
Cache eviction policy error.
Variants§
InvalidFrameId(F)
Invalid frame id.
PinnedFrameRemoval(F)
Trying to remove pinned frame.
FrameReplacerFull
Cannot add any more pages to the frame replacer.
InvalidTimestamp
Invalid sequence number.
NoFramesAvailable
No free frames available.
SequenceExhausted
Sequence generator arrived at maximum value.
Trait Implementations§
Source§impl<F> Display for EvictError<F>
impl<F> Display for EvictError<F>
Source§impl<F: FrameId> Error for EvictError<F>
impl<F: FrameId> Error for EvictError<F>
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()
impl<F: FrameId> StructuralPartialEq for EvictError<F>
Auto Trait Implementations§
impl<F> Freeze for EvictError<F>where
F: Freeze,
impl<F> RefUnwindSafe for EvictError<F>where
F: RefUnwindSafe,
impl<F> Send for EvictError<F>where
F: Send,
impl<F> Sync for EvictError<F>where
F: Sync,
impl<F> Unpin for EvictError<F>where
F: Unpin,
impl<F> UnwindSafe for EvictError<F>where
F: 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