chronix-engine 0.4.0

Storage engine for Chronix — WAL, memtable, columnar segments, indexes, compaction, and caches
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Cache error types.

use thiserror::Error;

/// Errors that can occur in the caching layer.
#[derive(Debug, Error)]
pub enum CacheError {
    /// Segment I/O error.
    #[error("Segment error: {0}")]
    Segment(#[from] crate::segment::SegmentError),

    /// Internal error.
    #[error("Cache error: {0}")]
    Internal(String),
}

/// A specialized `Result` type for cache operations.
pub type Result<T> = std::result::Result<T, CacheError>;