Enum poem::error::ParseTypedHeaderError
source · [−]Expand description
A possible error value when parsing typed headers.
Variants
HeaderRequired(String)
A specified header is required.
TypedHeader(Error)
Parse error.
Trait Implementations
sourceimpl Debug for ParseTypedHeaderError
impl Debug for ParseTypedHeaderError
sourceimpl Display for ParseTypedHeaderError
impl Display for ParseTypedHeaderError
sourceimpl Error for ParseTypedHeaderError
impl Error for ParseTypedHeaderError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for ParseTypedHeaderError
impl From<Error> for ParseTypedHeaderError
sourceimpl ResponseError for ParseTypedHeaderError
impl ResponseError for ParseTypedHeaderError
sourcefn status(&self) -> StatusCode
fn status(&self) -> StatusCode
The status code of this error.
Auto Trait Implementations
impl RefUnwindSafe for ParseTypedHeaderError
impl Send for ParseTypedHeaderError
impl Sync for ParseTypedHeaderError
impl Unpin for ParseTypedHeaderError
impl UnwindSafe for ParseTypedHeaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more