Trait limiting_factor::api::replies::FailureResponse [−][src]
pub trait FailureResponse {
fn into_failure_response(self) -> Status;
}
Expand description
This trait allows to consume an object into an HTTP failure response.
Required methods
fn into_failure_response(self) -> Status
fn into_failure_response(self) -> Status
Consumes the variable and creates a Failure response .
Implementations on Foreign Types
Consumes the error and creates a 500 Internal server error Status response.