pub enum UTCError {
UTCDate(UTCDateError),
UTCTimeOfDay(UTCTimeOfDayError),
UTCDay(UTCDayErrOutOfRange),
UTCDatetime(UTCDatetimeError),
}Expand description
UTC Datetime crate level error type
Variants§
UTCDate(UTCDateError)
Error within UTC Date
UTCTimeOfDay(UTCTimeOfDayError)
Error within UTC Time of Day
UTCDay(UTCDayErrOutOfRange)
Error within UTC Day
UTCDatetime(UTCDatetimeError)
Error within UTC Datetime
Trait Implementations§
Source§impl Error for UTCError
impl Error for UTCError
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<UTCDateError> for UTCError
impl From<UTCDateError> for UTCError
Source§fn from(value: UTCDateError) -> Self
fn from(value: UTCDateError) -> Self
Converts to this type from the input type.
Source§impl From<UTCDatetimeError> for UTCError
impl From<UTCDatetimeError> for UTCError
Source§fn from(value: UTCDatetimeError) -> Self
fn from(value: UTCDatetimeError) -> Self
Converts to this type from the input type.
Source§impl From<UTCDayErrOutOfRange> for UTCError
impl From<UTCDayErrOutOfRange> for UTCError
Source§fn from(value: UTCDayErrOutOfRange) -> Self
fn from(value: UTCDayErrOutOfRange) -> Self
Converts to this type from the input type.
Source§impl From<UTCTimeOfDayError> for UTCError
impl From<UTCTimeOfDayError> for UTCError
Source§fn from(value: UTCTimeOfDayError) -> Self
fn from(value: UTCTimeOfDayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UTCError
impl RefUnwindSafe for UTCError
impl Send for UTCError
impl Sync for UTCError
impl Unpin for UTCError
impl UnwindSafe for UTCError
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