Skip to main content

OperationOutput

Trait OperationOutput 

Source
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§

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

Source§

impl OperationOutput for NoContent

Source§

impl OperationOutput for StreamingBody

Source§

impl<S, E> OperationOutput for Result<S, E>

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.

Source§

impl<T: OperationOutput> OperationOutput for WithHeaders<T>

Source§

impl<T: Serialize> OperationOutput for Accepted<T>

Source§

impl<T: Serialize> OperationOutput for Created<T>

Source§

impl<T: Serialize> OperationOutput for Json<T>

Source§

impl<T> OperationOutput for PreparedJson<T>

Source§

impl<const STATUS: u16, T: OperationOutput> OperationOutput for Status<STATUS, T>

Implementors§