use crate::storage::StorageError; use thiserror::Error; #[derive(Debug, Error)] pub enum Error { #[error("storage: {0}")] Storage(#[from] StorageError), #[error("I/O: {0}")] Io(#[from] std::io::Error), #[error("task: {0}")] Join(#[from] tokio::task::JoinError), #[error("{0}")] Other(String), } pub type Result = std::result::Result;