Trait ErrorHandleable

Source
pub trait ErrorHandleable<T> {
    // Required method
    fn handle_error(self, msg: &str) -> T;
}

Required Methods§

Source

fn handle_error(self, msg: &str) -> T

Implementations on Foreign Types§

Source§

impl<T, E: Error> ErrorHandleable<T> for Result<T, E>

Source§

fn handle_error(self, msg: &str) -> T

Implementors§