pub enum UTCDatetimeError {
UTCDate(UTCDateError),
UTCTimeOfDay(UTCTimeOfDayError),
InsufficientStrLen(usize, usize),
}
Expand description
Error type for UTCDatetime methods
Variants§
UTCDate(UTCDateError)
Error within UTC Date
UTCTimeOfDay(UTCTimeOfDayError)
Error within UTC Time of Day
InsufficientStrLen(usize, usize)
Error raised due to insufficient length of input ISO datetime str
Trait Implementations§
Source§impl Clone for UTCDatetimeError
impl Clone for UTCDatetimeError
Source§fn clone(&self) -> UTCDatetimeError
fn clone(&self) -> UTCDatetimeError
Returns a duplicate 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 Debug for UTCDatetimeError
impl Debug for UTCDatetimeError
Source§impl Display for UTCDatetimeError
impl Display for UTCDatetimeError
Source§impl Error for UTCDatetimeError
impl Error for UTCDatetimeError
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 UTCDatetimeError
impl From<UTCDateError> for UTCDatetimeError
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<UTCTimeOfDayError> for UTCDatetimeError
impl From<UTCTimeOfDayError> for UTCDatetimeError
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 UTCDatetimeError
impl RefUnwindSafe for UTCDatetimeError
impl Send for UTCDatetimeError
impl Sync for UTCDatetimeError
impl Unpin for UTCDatetimeError
impl UnwindSafe for UTCDatetimeError
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