use thiserror::Error; #[derive(Error, Debug)] pub enum Error { #[error("libvirt: {0}")] Libvirt(#[from] virt::error::Error), #[error("Unknown: {0}")] Other(String), #[error("Missing connection: {0}")] Connection(String), }