pub enum MinutesSinceEpochToDatetimeError {
MinutesToNanoseconds(f64),
Add {
datetime: NaiveDateTime,
duration: Duration,
},
}
Expand description
Nanoseconds overflow while converting from minutes since epoch to datetime
2⁶⁴ nanoseconds correspond to about 585 years. Overflows are almost certainly caused by data corruption or code bugs.
Variants§
Trait Implementations§
source§impl Clone for MinutesSinceEpochToDatetimeError
impl Clone for MinutesSinceEpochToDatetimeError
source§fn clone(&self) -> MinutesSinceEpochToDatetimeError
fn clone(&self) -> MinutesSinceEpochToDatetimeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Error for MinutesSinceEpochToDatetimeError
impl Error for MinutesSinceEpochToDatetimeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for MinutesSinceEpochToDatetimeError
impl RefUnwindSafe for MinutesSinceEpochToDatetimeError
impl Send for MinutesSinceEpochToDatetimeError
impl Sync for MinutesSinceEpochToDatetimeError
impl Unpin for MinutesSinceEpochToDatetimeError
impl UnwindSafe for MinutesSinceEpochToDatetimeError
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