Enum actix_web::error::CookieParseError [−][src]
pub enum CookieParseError {
MissingPair,
EmptyName,
Utf8Error(Utf8Error),
// some variants omitted
}
Expand description
Enum corresponding to a parsing error.
Variants
MissingPair
The cookie did not contain a name/value pair.
EmptyName
The cookie’s name was empty.
Utf8Error(Utf8Error)
Tuple Fields
0: Utf8Error
Decoding the cookie’s name or value resulted in invalid UTF-8.
Implementations
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Return BadRequest
for cookie::ParseError
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more