Enum actix_web::cookie::time::error::Error [−][src]
#[non_exhaustive]
pub enum Error {
ConversionRange(ConversionRange),
ComponentRange(ComponentRange),
Format(Format),
ParseFromDescription(ParseFromDescription),
UnexpectedTrailingCharacters,
TryFromParsed(TryFromParsed),
InvalidFormatDescription(InvalidFormatDescription),
DifferentVariant(DifferentVariant),
}Expand description
A unified error type for anything returned by a method in the time crate.
This can be used when you either don’t know or don’t care about the exact error returned.
Result<_, time::Error> (or its alias time::Result<_>) will work in these situations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ConversionRange(ConversionRange)
Tuple Fields
ComponentRange(ComponentRange)
Tuple Fields
Format(Format)
Tuple Fields
0: FormatParseFromDescription(ParseFromDescription)
Tuple Fields
UnexpectedTrailingCharacters
TryFromParsed(TryFromParsed)
Tuple Fields
InvalidFormatDescription(InvalidFormatDescription)
Tuple Fields
DifferentVariant(DifferentVariant)
Tuple Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
pub fn try_from(
err: Error
) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<TryFromParsed, <TryFromParsed 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: Error
) -> Result<DifferentVariant, <DifferentVariant as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<DifferentVariant, <DifferentVariant 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: Error
) -> Result<ComponentRange, <ComponentRange as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<ComponentRange, <ComponentRange 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: Error
) -> Result<ConversionRange, <ConversionRange as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<ConversionRange, <ConversionRange 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: Error
) -> Result<InvalidFormatDescription, <InvalidFormatDescription as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<InvalidFormatDescription, <InvalidFormatDescription 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: Error
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<ParseFromDescription, <ParseFromDescription as TryFrom<Error>>::Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
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
