pub enum WallTimerError {
NoTimer,
OutOfRange {
source: Option<TryFromIntError>,
},
TimerSource,
System {
call: &'static str,
source: Arc<Error>,
},
Clock(Arc<dyn Error + Send + Sync>),
}Expand description
A clock couldn’t wait for a wall-clock time (§13.2): the system refused its timer, or the clock has none.
Variants§
NoTimer
The clock has no timer for a wall-clock time: a platform without one, or a clock that can’t say when its reading reaches it.
OutOfRange
The time is past what the system’s wall timer holds.
Fields
§
source: Option<TryFromIntError>The failed conversion, where the system’s timer takes the time as an integer of another size.
TimerSource
The system couldn’t create its timer source.
System
A call that arms or waits on the system’s timer failed.
Clock(Arc<dyn Error + Send + Sync>)
An app’s own clock failed to wait.
Implementations§
Trait Implementations§
Source§impl Clone for WallTimerError
impl Clone for WallTimerError
Source§fn clone(&self) -> WallTimerError
fn clone(&self) -> WallTimerError
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 WallTimerError
impl Debug for WallTimerError
Source§impl Display for WallTimerError
impl Display for WallTimerError
Source§impl Error for WallTimerError
impl Error for WallTimerError
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 WallTimerError
impl !RefUnwindSafe for WallTimerError
impl Send for WallTimerError
impl Sync for WallTimerError
impl Unpin for WallTimerError
impl UnsafeUnpin for WallTimerError
impl !UnwindSafe for WallTimerError
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