pub type Result = std::result::Result; #[allow(clippy::large_enum_variant)] #[derive(thiserror::Error, Debug)] pub enum Error { #[error("ZFS error: {0:?}")] ZFS(String), #[error("Snapshot Error: {0:?}")] Snapshot(String), #[error("File System Error: {0:?}")] FileSystem(String), #[error("IO Error: Failed to run command")] IO(#[from] std::io::Error), #[error("Failed to parse Command output: {0:?}")] Utf8(#[from] std::string::FromUtf8Error), #[error("Config Error: {0:?}")] Config(#[from] figment::Error), #[error(transparent)] Builder(#[from] crate::file_system::FileSystemBuilderError), }