pub struct TaskBuilder<Kind, Ctx = ()> { /* private fields */ }Implementations§
Source§impl<Ctx> TaskBuilder<Relative, Ctx>
impl<Ctx> TaskBuilder<Relative, Ctx>
pub fn every(period: Duration) -> Self
pub fn once_after(delay: Duration) -> Self
pub fn schedule(self, schedule: PeriodicSchedule) -> Self
pub fn initial_delay(self, delay: Duration) -> Self
pub fn build(self) -> Task<Ctx>
Source§impl<Ctx> TaskBuilder<Absolute, Ctx>
impl<Ctx> TaskBuilder<Absolute, Ctx>
Source§impl<Kind, Ctx> TaskBuilder<Kind, Ctx>
impl<Kind, Ctx> TaskBuilder<Kind, Ctx>
pub fn window(self, window: Window) -> Self
pub fn once(self) -> Self
pub fn repeat(self, repeat: Repeat) -> Self
pub fn priority(self, priority: u8) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn on_execute(self, callback: TaskCallback<Ctx>) -> Self
pub fn on_missed(self, callback: MissCallback<Ctx>) -> Self
pub fn on_miss(self, behavior: MissedTickBehavior) -> Self
Auto Trait Implementations§
impl<Kind, Ctx> Freeze for TaskBuilder<Kind, Ctx>
impl<Kind, Ctx> RefUnwindSafe for TaskBuilder<Kind, Ctx>where
Kind: RefUnwindSafe,
impl<Kind, Ctx> Send for TaskBuilder<Kind, Ctx>where
Kind: Send,
impl<Kind, Ctx> Sync for TaskBuilder<Kind, Ctx>where
Kind: Sync,
impl<Kind, Ctx> Unpin for TaskBuilder<Kind, Ctx>where
Kind: Unpin,
impl<Kind, Ctx> UnsafeUnpin for TaskBuilder<Kind, Ctx>
impl<Kind, Ctx> UnwindSafe for TaskBuilder<Kind, Ctx>where
Kind: UnwindSafe,
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