crabtalk-memory 0.0.21

Standalone single-file memory system for Crabtalk agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
    #[error("entry not found: {0}")]
    NotFound(String),
    #[error("entry already exists: {0}")]
    Duplicate(String),
    #[error("bad memory file format: {0}")]
    BadFormat(&'static str),
    #[error("invalid entry name for dump: {0:?}")]
    InvalidName(String),
    #[error(transparent)]
    Io(#[from] std::io::Error),
}