pub struct TypedHeaderRejection { /* private fields */ }
Expand description
Rejection used for TypedHeader
.
Implementationsยง
Sourceยงimpl TypedHeaderRejection
impl TypedHeaderRejection
Sourcepub fn name(&self) -> &HeaderName
pub fn name(&self) -> &HeaderName
Name of the header that caused the rejection
Sourcepub fn reason(&self) -> &TypedHeaderRejectionReason
pub fn reason(&self) -> &TypedHeaderRejectionReason
Reason why the header extraction has failed
Trait Implementationsยง
Sourceยงimpl Debug for TypedHeaderRejection
impl Debug for TypedHeaderRejection
Sourceยงimpl Display for TypedHeaderRejection
impl Display for TypedHeaderRejection
Sourceยงimpl Error for TypedHeaderRejection
impl Error for TypedHeaderRejection
Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 ยท Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
๐Deprecated since 1.42.0: use the Display impl or to_string()
Sourceยงimpl IntoResponse for TypedHeaderRejection
impl IntoResponse for TypedHeaderRejection
Sourceยงfn into_response(self) -> Response<UnsyncBoxBody<Bytes, Error>>
fn into_response(self) -> Response<UnsyncBoxBody<Bytes, Error>>
Create a response.
Auto Trait Implementationsยง
impl Freeze for TypedHeaderRejection
impl RefUnwindSafe for TypedHeaderRejection
impl Send for TypedHeaderRejection
impl Sync for TypedHeaderRejection
impl Unpin for TypedHeaderRejection
impl UnwindSafe for TypedHeaderRejection
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