Enum maitake::time::TimerError
source · #[non_exhaustive]pub enum TimerError {
NoGlobalTimer,
DurationTooLong {
requested: Duration,
max: Duration,
},
}
Expand description
Errors returned by Timer::try_sleep
, Timer::try_timeout
, and the
global try_sleep
and try_timeout
functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoGlobalTimer
No global default timer has been set.
This error is returned by the try_sleep
and try_timeout
functions only.
DurationTooLong
The requested Duration
exceeds the timer’s maximum duration.
This error is returned by Timer::try_sleep
, Timer::try_timeout
,
and the global try_sleep
and try_timeout
functions.
Trait Implementations§
source§impl Debug for TimerError
impl Debug for TimerError
source§impl Display for TimerError
impl Display for TimerError
source§impl PartialEq for TimerError
impl PartialEq for TimerError
impl Eq for TimerError
impl StructuralPartialEq for TimerError
Auto Trait Implementations§
impl Freeze for TimerError
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnwindSafe for TimerError
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