pub enum TimestampError {
FailedToParseInt(ParseIntError),
FailedTryFromInt(TryFromIntError),
FailedToConvert(ComponentRange),
InvalidDate,
OverflowedTimestamp,
}
Variants§
FailedToParseInt(ParseIntError)
failed to parse integer: {0}
FailedTryFromInt(TryFromIntError)
failed try_from on integer: {0}
FailedToConvert(ComponentRange)
failed to convert offset date: {0}
InvalidDate
invalid date: out of range
OverflowedTimestamp
overflowed timestamp
Trait Implementations§
Source§impl Debug for TimestampError
impl Debug for TimestampError
Source§impl Display for TimestampError
impl Display for TimestampError
Source§impl Error for TimestampError
impl Error for TimestampError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<ComponentRange> for TimestampError
impl From<ComponentRange> for TimestampError
Source§fn from(value: ComponentRange) -> Self
fn from(value: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for TimestampError
impl From<ParseIntError> for TimestampError
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for TimestampError
impl From<TryFromIntError> for TimestampError
Source§fn from(value: TryFromIntError) -> Self
fn from(value: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimestampError
impl RefUnwindSafe for TimestampError
impl Send for TimestampError
impl Sync for TimestampError
impl Unpin for TimestampError
impl UnwindSafe for TimestampError
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