pub enum SystemTimeError {
Unsynchronized,
EpochIsLaterThanStartTime,
}
Expand description
An error that may happen while working with System Time.
Variants§
Unsynchronized
Occurs when an attempt is made to get system time, but it was not synchronized earlier.
EpochIsLaterThanStartTime
Occurs when an attempt is made to synchronize using an epoch time that is later than the program’s start time.
Trait Implementations§
Source§impl Debug for SystemTimeError
impl Debug for SystemTimeError
Source§impl Display for SystemTimeError
impl Display for SystemTimeError
Source§impl Error for SystemTimeError
impl Error for SystemTimeError
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 SystemTimeError
impl PartialEq for SystemTimeError
impl Eq for SystemTimeError
impl StructuralPartialEq for SystemTimeError
Auto Trait Implementations§
impl Freeze for SystemTimeError
impl RefUnwindSafe for SystemTimeError
impl Send for SystemTimeError
impl Sync for SystemTimeError
impl Unpin for SystemTimeError
impl UnwindSafe for SystemTimeError
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