Enum isahc::cookies::CookieRejectedErrorKind
source · #[non_exhaustive]
pub enum CookieRejectedErrorKind {
InvalidRequestDomain,
InvalidCookieDomain,
DomainMismatch,
}
Available on crate feature
cookies
only.Expand description
The reason why the Cookie
was rejected.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRequestDomain
The absolute request URI did not contain a valid host.
InvalidCookieDomain
The Cookie
’s specified domain was not valid.
This can be for a number of reasons:
- The domain was a top-level domain.
- The domain is disallowed, for example if it is a public suffix.
DomainMismatch
The domain of the Cookie
did not match the domain of the absolute request URI.
Trait Implementations
sourceimpl Clone for CookieRejectedErrorKind
impl Clone for CookieRejectedErrorKind
sourcefn clone(&self) -> CookieRejectedErrorKind
fn clone(&self) -> CookieRejectedErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CookieRejectedErrorKind
impl Debug for CookieRejectedErrorKind
sourceimpl PartialEq<CookieRejectedErrorKind> for CookieRejectedErrorKind
impl PartialEq<CookieRejectedErrorKind> for CookieRejectedErrorKind
sourcefn eq(&self, other: &CookieRejectedErrorKind) -> bool
fn eq(&self, other: &CookieRejectedErrorKind) -> bool
impl Copy for CookieRejectedErrorKind
impl Eq for CookieRejectedErrorKind
impl StructuralEq for CookieRejectedErrorKind
impl StructuralPartialEq for CookieRejectedErrorKind
Auto Trait Implementations
impl RefUnwindSafe for CookieRejectedErrorKind
impl Send for CookieRejectedErrorKind
impl Sync for CookieRejectedErrorKind
impl Unpin for CookieRejectedErrorKind
impl UnwindSafe for CookieRejectedErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more