pub enum CalendarError {
Unsupported(Date),
Misaligned(OffsetDateTime),
}Expand description
A calendar failure: the date or instant lies outside the supported years.
Variants§
Unsupported(Date)
The date is outside the calendar’s supported years.
Misaligned(OffsetDateTime)
The instant is not aligned to a 15-minute boundary.
Trait Implementations§
Source§impl Clone for CalendarError
impl Clone for CalendarError
Source§impl Debug for CalendarError
impl Debug for CalendarError
Source§impl Display for CalendarError
impl Display for CalendarError
impl Eq for CalendarError
Source§impl Error for CalendarError
impl Error for CalendarError
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 PartialEq for CalendarError
impl PartialEq for CalendarError
impl StructuralPartialEq for CalendarError
Auto Trait Implementations§
impl Forget for CalendarError
impl Freeze for CalendarError
impl Move for CalendarError
impl RefUnwindSafe for CalendarError
impl Send for CalendarError
impl Sync for CalendarError
impl Unpin for CalendarError
impl UnsafeUnpin for CalendarErrorwhere
NonZeroI32Inner: UnsafeUnpin,
impl UnwindSafe for CalendarError
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