Enum cookie_store::CookieError
source · [−]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 recevied 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
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(_: ParseError) -> Error
fn from(_: ParseError) -> Error
Performs the conversion.
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
sourcefn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more