#[non_exhaustive]
pub enum ParseFromDescription {
InvalidLiteral,
InvalidComponent(&'static str),
}
This is supported on crate feature
cookies
only.Expand description
An error that occurred while parsing the input into a Parsed
struct.
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.
InvalidLiteral
A string literal was not what was expected.
InvalidComponent(&'static str)
A dynamic component was not valid.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
pub fn try_from(
err: Error
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Error>>::Error>
Performs the conversion.
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
pub fn try_from(
err: Parse
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Parse>>::Error>
pub fn try_from(
err: Parse
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Parse>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ParseFromDescription
impl Send for ParseFromDescription
impl Sync for ParseFromDescription
impl Unpin for ParseFromDescription
impl UnwindSafe for ParseFromDescription
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more