pub enum Behave {
Cancel,
Change(Duration),
Repeat,
}Expand description
Behavior after task completion
Variants§
Cancel
cancel the task, which is the default behavior.
Change(Duration)
change the time interval and continue the task.
Repeat
repeat the task.
Trait Implementations§
impl Copy for Behave
Auto Trait Implementations§
impl Freeze for Behave
impl RefUnwindSafe for Behave
impl Send for Behave
impl Sync for Behave
impl Unpin for Behave
impl UnwindSafe for Behave
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