pub trait OperationOutput {
// Required method
fn into_execution_outcome(self) -> ExecutionOutcome;
}Expand description
A typed handler result that can become a shared operation outcome.
Required Methods§
fn into_execution_outcome(self) -> ExecutionOutcome
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl OperationOutput for HttpUpgrade
impl OperationOutput for HttpUpgrade
fn into_execution_outcome(self) -> ExecutionOutcome
Source§impl OperationOutput for NoContent
impl OperationOutput for NoContent
fn into_execution_outcome(self) -> ExecutionOutcome
Source§impl OperationOutput for StreamingBody
impl OperationOutput for StreamingBody
fn into_execution_outcome(self) -> ExecutionOutcome
Source§impl<S, E> OperationOutput for Result<S, E>where
S: OperationOutput,
E: ApiError,
impl<S, E> OperationOutput for Result<S, E>where
S: OperationOutput,
E: ApiError,
fn into_execution_outcome(self) -> ExecutionOutcome
Source§impl<T: OperationOutput> OperationOutput for Background<T>
Tasks ride on the response value, so an error outcome discards them: a
rejection, a domain error, and an internal error carry no response value and
therefore no task slot. An operation that must schedule work on a failing
path injects blazingly_http::BackgroundTasks instead, whose tasks are
attached to the response whatever the outcome is.
impl<T: OperationOutput> OperationOutput for Background<T>
Tasks ride on the response value, so an error outcome discards them: a
rejection, a domain error, and an internal error carry no response value and
therefore no task slot. An operation that must schedule work on a failing
path injects blazingly_http::BackgroundTasks instead, whose tasks are
attached to the response whatever the outcome is.