Skip to main content

HandlerOutput

Trait HandlerOutput 

Source
pub trait HandlerOutput: Sealed {
    const OPERATION: Operation;

    // Required method
    fn into_response(self) -> Result<Response<ServiceBody>, HandlerError>;
}

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, E> HandlerOutput for Streaming<T, E>
where T: Serialize + Send + 'static, E: Into<HandlerError> + Send + 'static,

Source§

const OPERATION: Operation = Operation::Streaming

Source§

impl<T: Serialize> HandlerOutput for Reply<T>

Source§

const OPERATION: Operation = Operation::Unary