Trait poem::web::IntoResponse [−][src]
pub trait IntoResponse { fn into_response(self) -> Result<Response>; }
Expand description
Trait for generating responses.
Types that implement IntoResponse can be returned from endpoints/handlers.
Required methods
fn into_response(self) -> Result<Response>
fn into_response(self) -> Result<Response>
Consume itself and return Response
.
Implementations on Foreign Types
Implementors
impl<T> IntoResponse for SSE<T> where
T: Stream<Item = Event> + Send + 'static,
This is supported on crate feature
sse
only.