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§
Trait Implementations§
source§impl<'a, T: FromRequest<'a>> FromRequest<'a> for Result<T>
impl<'a, T: FromRequest<'a>> FromRequest<'a> for Result<T>
source§async fn from_request(req: &'a Request, body: &mut RequestBody) -> Result<Self>
async fn from_request(req: &'a Request, body: &mut RequestBody) -> Result<Self>
Extract from request head and body.
source§impl<T, E> IntoResult<T> for Result<T, E>
impl<T, E> IntoResult<T> for Result<T, E>
source§fn into_result(self) -> Result<T>
fn into_result(self) -> Result<T>
Consumes this value returns a
poem::Result<T>
.