error.rs
1 use thiserror::Error; 2 3 #[derive(Debug, Error)] 4 pub enum Error { 5 #[error(transparent)] 6 Atspi(#[from] atspi::error::AtspiError), 7 8 #[error(transparent)] 9 Zbus(#[from] zbus::Error), 10 11 #[error("{0}")] 12 Mount(String), 13 14 #[error(transparent)] 15 Io(#[from] std::io::Error), 16 17 #[error(transparent)] 18 FuseDecode(#[from] polyfuse::op::DecodeError), 19 } 20 21 pub type Result<T> = std::result::Result<T, Error>;