cuckoo-cache 0.2.0

Cuckoo hash based cache storage engine with fixed-size item slots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Errors returned by the cuckoo cache API.

use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq, Copy, Clone)]
/// Possible errors returned by the cuckoo cache API.
pub enum CuckooCacheError {
    #[error("item oversized ({size} bytes, max {max} bytes)")]
    ItemOversized { size: usize, max: usize },
    #[error("item not found")]
    NotFound,
    #[error("item is not numeric")]
    NotNumeric,
}