Type Alias poem::error::Result

source ·
pub type Result<T, E = Error> = Result<T, E>;
Expand description

A specialized Result type for Poem.

Trait Implementations§

source§

impl<'a, T: FromRequest<'a>> FromRequest<'a> for Result<T>

source§

fn from_request<'life0, 'async_trait>( req: &'a Request, body: &'life0 mut RequestBody ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Extract from request head and body.
source§

impl<T, E> IntoResult<T> for Result<T, E>where T: IntoResponse, E: Into<Error> + Send + Sync + 'static,

source§

fn into_result(self) -> Result<T>

Consumes this value returns a poem::Result<T>.