Expand description
A specialized Result type for Poem.
Trait Implementations
sourceimpl<'a, T: FromRequest<'a>> FromRequest<'a> for Result<T>
impl<'a, T: FromRequest<'a>> FromRequest<'a> for Result<T>
sourcefn from_request<'life0, 'async_trait>(
req: &'a Request,
body: &'life0 mut RequestBody
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'a Request,
body: &'life0 mut RequestBody
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Extract from request head and body.
sourceimpl<T, E> IntoResult<T> for Result<T, E> where
T: IntoResponse,
E: Into<Error> + Send + Sync + 'static,
impl<T, E> IntoResult<T> for Result<T, E> where
T: IntoResponse,
E: Into<Error> + Send + Sync + 'static,
sourcefn into_result(self) -> Result<T>
fn into_result(self) -> Result<T>
Consumes this value returns a poem::Result<T>
.