rstreams/
error.rs

1use std::{fmt, result};
2
3pub type Result<T> = result::Result<T, Error>;
4
5#[derive(Clone, Debug, Eq, PartialEq)]
6pub enum Error {
7    KVStoreError,
8    KVDataCorrupted,
9    MutexPoisoned,
10}
11
12impl fmt::Display for Error {
13    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14        write!(f, "{:?}", self)
15    }
16}