#[non_exhaustive]pub enum TypedHeaderRejectionReason {
Missing,
Error(Error),
}
Available on crate feature
typed-header
only.Expand description
Additional information regarding a TypedHeaderRejection
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
The header was missing from the HTTP request
Error(Error)
An error occurred when parsing the header from the HTTP request
Implementations§
Source§impl TypedHeaderRejectionReason
impl TypedHeaderRejectionReason
Sourcepub fn is_missing(&self) -> bool
pub fn is_missing(&self) -> bool
Returns true
if the typed header rejection reason is Missing
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypedHeaderRejectionReason
impl RefUnwindSafe for TypedHeaderRejectionReason
impl Send for TypedHeaderRejectionReason
impl Sync for TypedHeaderRejectionReason
impl Unpin for TypedHeaderRejectionReason
impl UnwindSafe for TypedHeaderRejectionReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more