pub trait ErrorProtocol: Protocol {
type ErrorMeta: ProtocolWire;
// Required methods
fn error_severity(&self, error_key: &str) -> ResponseSeverity;
fn format_error_label(&self, error_key: &str) -> String;
}Expand description
Error / fault documentation aspects.
Required Associated Types§
Sourcetype ErrorMeta: ProtocolWire
type ErrorMeta: ProtocolWire
Typed error metadata payload.
Required Methods§
Sourcefn error_severity(&self, error_key: &str) -> ResponseSeverity
fn error_severity(&self, error_key: &str) -> ResponseSeverity
Map an error key to ResponseSeverity.
Sourcefn format_error_label(&self, error_key: &str) -> String
fn format_error_label(&self, error_key: &str) -> String
Human-readable error label for documentation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".