pub enum SystemTimeError {
InvalidSystemTime,
OutOfRange,
}Expand description
An error that may be returned when initializing a MonotonicTime from
system time.
Variants§
InvalidSystemTime
The system time is in the past of the Unix epoch.
OutOfRange
The system time cannot be represented as a MonotonicTime.
Trait Implementations§
Source§impl Clone for SystemTimeError
impl Clone for SystemTimeError
Source§fn clone(&self) -> SystemTimeError
fn clone(&self) -> SystemTimeError
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 SystemTimeError
impl Debug for SystemTimeError
Source§impl Display for SystemTimeError
impl Display for SystemTimeError
Source§impl Error for SystemTimeError
impl Error for SystemTimeError
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 SystemTimeError
impl PartialEq for SystemTimeError
impl Copy 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