Type Alias poem::error::Result

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

A specialized Result type for Poem.

Aliased Type§

enum Result<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

source§

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

source§

async fn from_request(req: &'a Request, body: &mut RequestBody) -> Result<Self>

Extract from request head and body.
source§

fn from_request_without_body( req: &'a Request ) -> impl Future<Output = Result<Self>> + Send

Extract from request head. Read more
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>.