Enum ibc_primitives::TimestampError
source · pub enum TimestampError {
ParseInt(ParseIntError),
TryFromInt(TryFromIntError),
DateOutOfRange,
TimestampOverflow,
Conversion(ComponentRange),
}
Variants§
ParseInt(ParseIntError)
parsing u64 integer from string error: {0}
TryFromInt(TryFromIntError)
error converting integer to Timestamp
: {0}
DateOutOfRange
date out of range
TimestampOverflow
Timestamp overflow when modifying with duration
Conversion(ComponentRange)
Timestamp is not set
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(original: ComponentRange) -> TimestampError
fn from(original: ComponentRange) -> TimestampError
Converts to this type from the input type.
source§impl From<ParseIntError> for TimestampError
impl From<ParseIntError> for TimestampError
source§fn from(original: ParseIntError) -> TimestampError
fn from(original: ParseIntError) -> TimestampError
Converts to this type from the input type.
source§impl From<TryFromIntError> for TimestampError
impl From<TryFromIntError> for TimestampError
source§fn from(original: TryFromIntError) -> TimestampError
fn from(original: 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