routing::bedrock::with_error_reporter

Trait WithErrorReporter

Source
pub trait WithErrorReporter {
    // Required method
    fn with_error_reporter(
        self,
        route_request: RouteRequestErrorInfo,
        error_reporter: impl ErrorReporter,
    ) -> Self;
}

Required Methods§

Source

fn with_error_reporter( self, route_request: RouteRequestErrorInfo, error_reporter: impl ErrorReporter, ) -> Self

Returns a router that reports errors to error_reporter.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: CapabilityBound> WithErrorReporter for Router<T>

Source§

fn with_error_reporter( self, route_request: RouteRequestErrorInfo, error_reporter: impl ErrorReporter, ) -> Self

Implementors§