amethystate 0.26.0

A state manager for Rust applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::codec::CodecError;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TextStoreError {
    #[error("Text store IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error(transparent)]
    Codec(#[from] CodecError),

    #[error("Text root must be an object/mapping")]
    RootMustBeObject,

    #[error("File watcher error: {0}")]
    Watch(String),
}