#[non_exhaustive]pub enum TimerFailurePoint {
Registration,
Completion,
}Available on crate feature
test-util only.Expand description
Selects which stage of a Timer operation reports the configured failure.
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.
Registration
Timer::at rejects the deadline without returning a future.
Completion
Timer::at succeeds and its returned future reports the failure.
Trait Implementations§
Source§impl Clone for TimerFailurePoint
impl Clone for TimerFailurePoint
Source§fn clone(&self) -> TimerFailurePoint
fn clone(&self) -> TimerFailurePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerFailurePoint
Source§impl Debug for TimerFailurePoint
impl Debug for TimerFailurePoint
impl Eq for TimerFailurePoint
Source§impl PartialEq for TimerFailurePoint
impl PartialEq for TimerFailurePoint
impl StructuralPartialEq for TimerFailurePoint
Auto Trait Implementations§
impl Freeze for TimerFailurePoint
impl RefUnwindSafe for TimerFailurePoint
impl Send for TimerFailurePoint
impl Sync for TimerFailurePoint
impl Unpin for TimerFailurePoint
impl UnsafeUnpin for TimerFailurePoint
impl UnwindSafe for TimerFailurePoint
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