pub enum CookieError {
InvalidName,
InvalidValue,
InvalidAttribute,
Unknown,
}Expand description
Represents the reasons a cookie cannot be built or parsed.
The variants name the part of the cookie that was refused, so a caller can tell a malformed name apart from a malformed value.
Variants§
InvalidName
The cookie name is not a token.
InvalidValue
The cookie value carries a character that may not appear in one.
InvalidAttribute
The cookie attribute carries a character that may not appear in one.
Unknown
Unknown error
Trait Implementations§
Source§impl Clone for CookieError
impl Clone for CookieError
Source§fn clone(&self) -> CookieError
fn clone(&self) -> CookieError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CookieError
Source§impl Debug for CookieError
impl Debug for CookieError
Source§impl Default for CookieError
impl Default for CookieError
Source§fn default() -> CookieError
fn default() -> CookieError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CookieError
impl<'de> Deserialize<'de> for CookieError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CookieError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CookieError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CookieError
Source§impl PartialEq for CookieError
impl PartialEq for CookieError
Source§impl Serialize for CookieError
impl Serialize for CookieError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CookieError
Auto Trait Implementations§
impl Freeze for CookieError
impl RefUnwindSafe for CookieError
impl Send for CookieError
impl Sync for CookieError
impl Unpin for CookieError
impl UnsafeUnpin for CookieError
impl UnwindSafe for CookieError
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.