1 2 3 4 5 6 7 8
#[derive(Debug, thiserror::Error)] #[non_exhaustive] pub enum Error { #[error("Other Error >> {:?}", .0)] Other(#[from] anyhow::Error), } pub type Result<T> = std::result::Result<T, Error>;