ReportErrorEnvironment

Trait ReportErrorEnvironment 

Source
pub trait ReportErrorEnvironment {
    // Required method
    fn report_error<'a>(
        &mut self,
        fail: &'a (dyn Error + Sync + Send + 'static),
    ) -> BoxFuture<'a, ()>;
}
Expand description

An interface for reporting arbitrary errors.

Required Methods§

Source

fn report_error<'a>( &mut self, fail: &'a (dyn Error + Sync + Send + 'static), ) -> BoxFuture<'a, ()>

Reports any Error as appropriate, e.g. print to stderr.

Implementations on Foreign Types§

Source§

impl<'b, T: ?Sized + ReportErrorEnvironment> ReportErrorEnvironment for &'b mut T

Source§

fn report_error<'a>( &mut self, fail: &'a (dyn Error + Sync + Send + 'static), ) -> BoxFuture<'a, ()>

Implementors§

Source§

impl<A, FM, L, V, EX, WD, B, N, ERR> ReportErrorEnvironment for Env<A, FM, L, V, EX, WD, B, N, ERR>