pub trait WithErrorReporter {
// Required method
fn with_error_reporter(
self,
route_request: RouteRequestErrorInfo,
error_reporter: impl ErrorReporter,
) -> Self;
}
Required Methods§
Sourcefn with_error_reporter(
self,
route_request: RouteRequestErrorInfo,
error_reporter: impl ErrorReporter,
) -> Self
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.