Enum actix_web::cookie::time::error::TryFromParsed
#[non_exhaustive]pub enum TryFromParsed {
InsufficientInformation,
ComponentRange(ComponentRange),
}
Available on crate feature
cookies
only.Expand description
An error that occurred when converting a Parsed
to another type.
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.
InsufficientInformation
The Parsed
did not include enough information to construct the
type.
ComponentRange(ComponentRange)
Some component contained an invalid value for the type.
Trait Implementations§
§impl Clone for TryFromParsed
impl Clone for TryFromParsed
§fn clone(&self) -> TryFromParsed
fn clone(&self) -> TryFromParsed
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TryFromParsed
impl Debug for TryFromParsed
§impl Display for TryFromParsed
impl Display for TryFromParsed
§impl Error for TryFromParsed
Available on crate feature std
only.
impl Error for TryFromParsed
Available on crate feature
std
only.§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<ComponentRange> for TryFromParsed
impl From<ComponentRange> for TryFromParsed
§fn from(v: ComponentRange) -> TryFromParsed
fn from(v: ComponentRange) -> TryFromParsed
Converts to this type from the input type.
§impl From<TryFromParsed> for Error
impl From<TryFromParsed> for Error
§fn from(original: TryFromParsed) -> Error
fn from(original: TryFromParsed) -> Error
Converts to this type from the input type.
§impl From<TryFromParsed> for Parse
impl From<TryFromParsed> for Parse
§fn from(err: TryFromParsed) -> Parse
fn from(err: TryFromParsed) -> Parse
Converts to this type from the input type.
§impl PartialEq for TryFromParsed
impl PartialEq for TryFromParsed
§fn eq(&self, other: &TryFromParsed) -> bool
fn eq(&self, other: &TryFromParsed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<Error> for TryFromParsed
impl TryFrom<Error> for TryFromParsed
§type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
§fn try_from(
err: Error
) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Error>>::Error>
fn try_from( err: Error ) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Error>>::Error>
Performs the conversion.
§impl TryFrom<Parse> for TryFromParsed
impl TryFrom<Parse> for TryFromParsed
§type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
§fn try_from(
err: Parse
) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Parse>>::Error>
fn try_from( err: Parse ) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Parse>>::Error>
Performs the conversion.
§impl TryFrom<TryFromParsed> for ComponentRange
impl TryFrom<TryFromParsed> for ComponentRange
§type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
§fn try_from(
err: TryFromParsed
) -> Result<ComponentRange, <ComponentRange as TryFrom<TryFromParsed>>::Error>
fn try_from( err: TryFromParsed ) -> Result<ComponentRange, <ComponentRange as TryFrom<TryFromParsed>>::Error>
Performs the conversion.
impl Copy for TryFromParsed
impl Eq for TryFromParsed
impl StructuralPartialEq for TryFromParsed
Auto Trait Implementations§
impl Freeze for TryFromParsed
impl RefUnwindSafe for TryFromParsed
impl Send for TryFromParsed
impl Sync for TryFromParsed
impl Unpin for TryFromParsed
impl UnwindSafe for TryFromParsed
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.