1 2 3 4 5 6 7 8
quick_error! { #[derive(Debug)] pub enum DatabaseError { KeyNotFound InternalError(err: String) } } pub type Result<T> = std::result::Result<T, DatabaseError>;
1 2 3 4 5 6 7 8
quick_error! { #[derive(Debug)] pub enum DatabaseError { KeyNotFound InternalError(err: String) } } pub type Result<T> = std::result::Result<T, DatabaseError>;