Skip to main content

ResponseProtocol

Trait ResponseProtocol 

Source
pub trait ResponseProtocol: Protocol {
    // Required method
    fn response_severity(&self, status_key: &str) -> ResponseSeverity;
}
Expand description

Response outcome mapping.

Required Methods§

Source

fn response_severity(&self, status_key: &str) -> ResponseSeverity

Map a family-specific status key to ResponseSeverity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§