rom_cache 0.0.1-alpha2

A rust crate to cache ROM in memory like CPU caching RAM.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The error type for this crate.

use thiserror::Error;

/// The error type for this crate.
#[allow(missing_docs)]
#[derive(Error, Debug)]
pub enum CacheError {
    #[error("Io error: {0}")]
    Io(#[from] std::io::Error),
    #[error("Cache line is missing.")]
    Missing,
    #[error("RwLock poisoned.")]
    Poisoned,
}

/// A specialized `Result` type for this crate.
pub type CacheResult<T> = std::result::Result<T, CacheError>;