pub enum CookieError {
NonHttpScheme,
NonRelativeScheme,
DomainMismatch,
Expired,
Parse,
PublicSuffix,
UnspecifiedDomain,
}
Variants§
NonHttpScheme
Cookie had attribute HttpOnly but was received from a request-uri which was not an http scheme
NonRelativeScheme
Cookie did not specify domain but was received from non-relative-scheme request-uri from which host could not be determined
DomainMismatch
Cookie received from a request-uri that does not domain-match
Expired
Cookie is Expired
Parse
cookie::Cookie
Parse error
PublicSuffix
Cookie specified a public suffix domain-attribute that does not match the canonicalized request-uri host
UnspecifiedDomain
Tried to use a CookieDomain variant of Empty
or NotPresent
in a context requiring a Domain value
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(_: ParseError) -> Error
fn from(_: ParseError) -> Error
Converts to this type from the input type.
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)