pub enum TimerInterval {
Fixed(NonZeroU64),
Schedule(Arc<dyn TimerSchedule>),
}Expand description
The spacing or deadline source for consecutive events of a recurring timer.
Variants§
Fixed(NonZeroU64)
A fixed interval in nanoseconds.
Schedule(Arc<dyn TimerSchedule>)
A source of absolute UTC deadlines.
Trait Implementations§
Source§impl Clone for TimerInterval
impl Clone for TimerInterval
Source§impl Debug for TimerInterval
impl Debug for TimerInterval
Source§impl From<NonZero<u64>> for TimerInterval
impl From<NonZero<u64>> for TimerInterval
Source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TimerInterval
impl !UnwindSafe for TimerInterval
impl Freeze for TimerInterval
impl Send for TimerInterval
impl Sync for TimerInterval
impl Unpin for TimerInterval
impl UnsafeUnpin for TimerInterval
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