pub enum TimezoneError {
InvalidTimezone(String),
AmbiguousTime(NaiveDateTime),
}Expand description
Errors that can occur during timezone operations.
Variants§
InvalidTimezone(String)
Invalid timezone name.
AmbiguousTime(NaiveDateTime)
Ambiguous local time (e.g., during DST transition).
Trait Implementations§
Source§impl Clone for TimezoneError
impl Clone for TimezoneError
Source§fn clone(&self) -> TimezoneError
fn clone(&self) -> TimezoneError
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 TimezoneError
impl Debug for TimezoneError
Source§impl Display for TimezoneError
impl Display for TimezoneError
Source§impl Error for TimezoneError
impl Error for TimezoneError
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()
Auto Trait Implementations§
impl Freeze for TimezoneError
impl RefUnwindSafe for TimezoneError
impl Send for TimezoneError
impl Sync for TimezoneError
impl Unpin for TimezoneError
impl UnwindSafe for TimezoneError
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