#[non_exhaustive]pub struct InjectResponseCookiesError {
pub invalid_header_value: String,
}
Expand description
The error type returned by inject_response_cookies
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.invalid_header_value: String
The invalid header value.
Implementations§
source§impl InjectResponseCookiesError
impl InjectResponseCookiesError
sourcepub fn into_response(&self) -> Response
pub fn into_response(&self) -> Response
Convert an InjectResponseCookiesError
into an HTTP response.
It returns a 500 Internal Server Error
to the caller,
since failure is likely due to misconfiguration or
mismanagement on the server side.
Trait Implementations§
source§impl Debug for InjectResponseCookiesError
impl Debug for InjectResponseCookiesError
source§impl Display for InjectResponseCookiesError
impl Display for InjectResponseCookiesError
source§impl Error for InjectResponseCookiesError
impl Error for InjectResponseCookiesError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for InjectResponseCookiesError
impl RefUnwindSafe for InjectResponseCookiesError
impl Send for InjectResponseCookiesError
impl Sync for InjectResponseCookiesError
impl Unpin for InjectResponseCookiesError
impl UnwindSafe for InjectResponseCookiesError
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