pub enum ScheduleMode {
FixedRate,
FixedDelay,
FixedRateNoOverlap,
}Variants§
FixedRate
Align the beats, and they might pile up.
FixedDelay
Sleep only after the task is completed, and there will be no accumulation.
FixedRateNoOverlap
Align the beats, but skip if the last task is not yet completed.
Trait Implementations§
Source§impl Clone for ScheduleMode
impl Clone for ScheduleMode
Source§fn clone(&self) -> ScheduleMode
fn clone(&self) -> ScheduleMode
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 ScheduleMode
impl Debug for ScheduleMode
impl Copy for ScheduleMode
Auto Trait Implementations§
impl Freeze for ScheduleMode
impl RefUnwindSafe for ScheduleMode
impl Send for ScheduleMode
impl Sync for ScheduleMode
impl Unpin for ScheduleMode
impl UnwindSafe for ScheduleMode
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