1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Error)] pub enum MiraError { #[error("command {command:?} not found")] CommandLoadError { command: &'static str }, #[error("backend(libloading) error")] BackendError(#[from] libloading::Error) }