Enum stretto::CacheError
source · [−]pub enum CacheError {
InvalidCountMinWidth(u64),
InvalidSamples(usize),
InvalidFalsePositiveRatio(f64),
InvalidNumCounters,
InvalidMaxCost,
InvalidBufferSize,
SendError(String),
RecvError(String),
}Expand description
CacheError contains the error of this crate
Variants
InvalidCountMinWidth(u64)
Count Min sketch with wrong width.
InvalidSamples(usize)
Invalid Samples value for TinyLFU.
InvalidFalsePositiveRatio(f64)
Invalid false positive ratio for TinyLFU.
InvalidNumCounters
Invalid number of counters for the Cache.
InvalidMaxCost
Invalid max cost for the Cache.
InvalidBufferSize
Invalid insert buffer size for the Cache.
SendError(String)
Error when send msg between threads.
RecvError(String)
Error when receive msg between threads.
Trait Implementations
sourceimpl Debug for CacheError
impl Debug for CacheError
sourceimpl Display for CacheError
impl Display for CacheError
sourceimpl Error for CacheError
impl Error for CacheError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnwindSafe for CacheError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more