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) -> TimestampError
fn from(value: ComponentRange) -> TimestampError
Converts to this type from the input type.
Source§impl From<ParseIntError> for TimestampError
impl From<ParseIntError> for TimestampError
Source§fn from(value: ParseIntError) -> TimestampError
fn from(value: ParseIntError) -> TimestampError
Converts to this type from the input type.
Source§impl From<TimestampError> for ChannelError
impl From<TimestampError> for ChannelError
Source§fn from(value: TimestampError) -> ChannelError
fn from(value: TimestampError) -> ChannelError
Converts to this type from the input type.
Source§impl From<TimestampError> for ClientError
impl From<TimestampError> for ClientError
Source§fn from(e: TimestampError) -> ClientError
fn from(e: TimestampError) -> ClientError
Converts to this type from the input type.
Source§impl From<TimestampError> for ConnectionError
impl From<TimestampError> for ConnectionError
Source§fn from(e: TimestampError) -> ConnectionError
fn from(e: TimestampError) -> ConnectionError
Converts to this type from the input type.
Source§impl From<TimestampError> for TendermintClientError
impl From<TimestampError> for TendermintClientError
Source§fn from(e: TimestampError) -> TendermintClientError
fn from(e: TimestampError) -> TendermintClientError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for TimestampError
impl From<TryFromIntError> for TimestampError
Source§fn from(value: TryFromIntError) -> TimestampError
fn from(value: TryFromIntError) -> TimestampError
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