#[non_exhaustive]pub enum TimerRegistrationError {
InactiveContext,
TimerUnavailable,
ZeroPeriod,
DeadlineOutOfRange,
}Expand description
Why a timer operation could not be registered. Every variant is a synchronous pre-delivery refusal: no operation is returned.
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.
InactiveContext
The selected Context generation is closed to new cleanup.
No usable Tokio time environment is current.
ZeroPeriod
Interval periods must be nonzero.
DeadlineOutOfRange
The requested monotonic deadline cannot be represented.
Trait Implementations§
Source§impl Clone for TimerRegistrationError
impl Clone for TimerRegistrationError
impl Copy for TimerRegistrationError
Source§impl Debug for TimerRegistrationError
impl Debug for TimerRegistrationError
Source§impl Display for TimerRegistrationError
impl Display for TimerRegistrationError
impl Eq for TimerRegistrationError
Source§impl Error for TimerRegistrationError
impl Error for TimerRegistrationError
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 TimerRegistrationError
impl PartialEq for TimerRegistrationError
impl StructuralPartialEq for TimerRegistrationError
Auto Trait Implementations§
impl Freeze for TimerRegistrationError
impl RefUnwindSafe for TimerRegistrationError
impl Send for TimerRegistrationError
impl Sync for TimerRegistrationError
impl Unpin for TimerRegistrationError
impl UnsafeUnpin for TimerRegistrationError
impl UnwindSafe for TimerRegistrationError
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