| 1 /*! |
1 /*! |
| 2 Error passing helper types |
2 Error passing helper types |
| 3 */ |
3 */ |
| 4 |
4 |
| 5 use std::error::Error; |
|
| 6 |
|
| 7 /// A [`Result`] containing `T` or a dynamic error type |
5 /// A [`Result`] containing `T` or a dynamic error type |
| 8 pub type DynResult<T> = Result<T, Box<dyn Error>>; |
6 pub type DynResult<T> = Result<T, anyhow::Error>; |
| 9 |
7 |
| 10 /// A [`Result`] containing `()` or a dynamic error type |
8 /// A [`Result`] containing `()` or a dynamic error type |
| 11 pub type DynError = DynResult<()>; |
9 pub type DynError = DynResult<()>; |
| 12 |
10 |
| 13 #[derive(Clone, Debug)] |
11 #[derive(Clone, Debug)] |