pub trait ErrorClassMapper {
type Decision;
// Required method
fn map(&self, context: ErrorMappingContext) -> Self::Decision;
}Expand description
Contract for adapter-facing error mapping.
Mapper implementations live at the edges and return transport-native decision types.
Required Associated Types§
Required Methods§
Sourcefn map(&self, context: ErrorMappingContext) -> Self::Decision
fn map(&self, context: ErrorMappingContext) -> Self::Decision
Maps a transport-agnostic context into an adapter decision.