pub enum ShiftError {
TimestampOutOfRange,
IntervalOutOfRange,
InfiniteIntervalAddedToTime,
InfiniteIntervalSubtractedFromTime,
OutsideJiffRange,
}Expand description
Why a timestamp or time shifted by an interval has no value here.
Variants§
TimestampOutOfRange
The timestamp lies outside PostgreSQL’s, or the shift leaves them.
IntervalOutOfRange
The interval timestamp - interval negates has a field at its minimum.
InfiniteIntervalAddedToTime
time + interval of an infinite interval.
InfiniteIntervalSubtractedFromTime
time - interval of an infinite interval.
OutsideJiffRange
An IANA time zone asked about an instant outside jiff’s years -9999 to 9999.
Trait Implementations§
Source§impl Clone for ShiftError
impl Clone for ShiftError
impl Copy for ShiftError
Source§impl Debug for ShiftError
impl Debug for ShiftError
Source§impl Display for ShiftError
impl Display for ShiftError
impl Eq for ShiftError
Source§impl Error for ShiftError
impl Error for ShiftError
1.30.0 · 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 Hash for ShiftError
impl Hash for ShiftError
Source§impl PartialEq for ShiftError
impl PartialEq for ShiftError
impl StructuralPartialEq for ShiftError
Auto Trait Implementations§
impl Forget for ShiftError
impl Freeze for ShiftError
impl RefUnwindSafe for ShiftError
impl Send for ShiftError
impl Sync for ShiftError
impl Unpin for ShiftError
impl UnsafeUnpin for ShiftError
impl UnwindSafe for ShiftError
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