Trait AnyhowToEmsError

Source
pub trait AnyhowToEmsError<T> {
    // Required method
    fn to_ems_error(self) -> Result<T>;
}
Expand description

Helper trait for converting anyhow errors to EMSError

Required Methods§

Source

fn to_ems_error(self) -> Result<T>

Convert an anyhow::Result to an EMSError Result

Implementations on Foreign Types§

Source§

impl<T> AnyhowToEmsError<T> for Result<T>

Implementors§