blueprint-store-local-database 0.2.0-alpha.5

Local database storage provider for the Blueprint SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Errors that can occur while interacting with the [`LocalDatabase`]
///
/// [`LocalDatabase`]: crate::LocalDatabase
#[derive(thiserror::Error, Debug)]
pub enum Error {
    /// Errors during I/O operations
    #[error(transparent)]
    Io(#[from] std::io::Error),
    /// Errors serializing or deserializing the database
    #[error(transparent)]
    Serialization(#[from] serde_json::Error),
    /// Internal mutex was poisoned by a panicking thread
    #[error("database mutex poisoned")]
    Poisoned,
}