tanu-core 0.20.2

The core component of tanu-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Occurs when `tanu.toml` fails to load.
    #[error("failed to load tanu.toml: {0}")]
    LoadError(String),
    /// Occurs when the specified key is not found in `tanu.toml`.
    #[error("the specified key \"{0}\" not found in tanu.toml")]
    ValueNotFound(String),
    #[error("the specified value could not be casted to the desired type: {0}")]
    ValueError(eyre::Error),
}