Type Definition poem::error::Result [−][src]
pub type Result<T, E = Error> = Result<T, E>;
Expand description
A specialized Result type for Poem.
Trait Implementations
Consume itself and return Response
.
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Self: Sized,
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Self: Sized,
Wrap an impl IntoResponse
to add a header.
Wrap an impl IntoResponse
to set a status code.