pub enum SchedType {
Timestamp(SystemTime),
Delay(Duration, usize),
}
Expand description
Specifies the schedule type of task.
- SchedType::Timestamp(SystemTime) specifies the SystemTime when the callback will be executed.
- SchedType::Delay(Duration, usize) specifies the interval and count that the callback will be executed.
Variants§
Timestamp(SystemTime)
Delay(Duration, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchedType
impl RefUnwindSafe for SchedType
impl Send for SchedType
impl Sync for SchedType
impl Unpin for SchedType
impl UnwindSafe for SchedType
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