Enum actix_web::error::CookieParseError [−][src]
pub enum CookieParseError {
MissingPair,
EmptyName,
Utf8Error(Utf8Error),
// some variants omitted
}Enum corresponding to a parsing error.
Variants
MissingPairThe cookie did not contain a name/value pair.
EmptyNameThe cookie's name was empty.
Utf8Error(Utf8Error)Decoding the cookie's name or value resulted in invalid UTF-8.
Methods
impl ParseError[src]
impl ParseErrorTrait Implementations
impl Display for ParseError[src]
impl Display for ParseErrorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl From<Utf8Error> for ParseError[src]
impl From<Utf8Error> for ParseErrorfn from(error: Utf8Error) -> ParseError[src]
fn from(error: Utf8Error) -> ParseErrorPerforms the conversion.
impl Copy for ParseError[src]
impl Copy for ParseErrorimpl Eq for ParseError[src]
impl Eq for ParseErrorimpl PartialEq<ParseError> for ParseError[src]
impl PartialEq<ParseError> for ParseErrorfn eq(&self, other: &ParseError) -> bool[src]
fn eq(&self, other: &ParseError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ParseError) -> bool[src]
fn ne(&self, other: &ParseError) -> boolThis method tests for !=.
impl Error for ParseError[src]
impl Error for ParseErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Clone for ParseError[src]
impl Clone for ParseErrorfn clone(&self) -> ParseError[src]
fn clone(&self) -> ParseErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ParseError[src]
impl Debug for ParseErrorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl ResponseError for ParseError[src]
impl ResponseError for ParseErrorReturn BadRequest for cookie::ParseError
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseCreate response for error Read more
Auto Trait Implementations
impl Send for ParseError
impl Send for ParseErrorimpl Sync for ParseError
impl Sync for ParseError