pub trait ErrorMap: 'static + Clone + Send + Sync { type OutError; type InError; // Required method fn map(e: Self::InError, msg: &str) -> Self::OutError; }