pub trait FailureMapper {
// Required method
fn map_route_error(&self, err: &RouteError) -> (FailureClass, RetryClass);
}Expand description
Failure-class mapping seam.
A future router issue will map RouteError (and downstream
stage errors) onto the
FailureClass / RetryClass pair carried on a
status=failed receipt. The skeleton defines the trait shape
only.
Required Methods§
Sourcefn map_route_error(&self, err: &RouteError) -> (FailureClass, RetryClass)
fn map_route_error(&self, err: &RouteError) -> (FailureClass, RetryClass)
Map a RouteError to a (failure_class, retry_class)
pair. Implementations must be deterministic — the same
RouteError variant must always map to the same pair so
receipt ledgers replay consistently.