1 2 3 4 5 6 7 8 9 10
use thiserror::Error; /// Errors that can occur during heuristic evaluation. #[derive(Debug, Error)] pub enum HeuristicError { #[error("Bitcoin RPC error: {0}")] Rpc(#[from] anyhow::Error), #[error("JSON serialization error: {0}")] Json(#[from] serde_json::Error), }