pub struct ScheduleExecutor { /* private fields */ }Expand description
Executor that starts each task at a specified monotonic instant.
ScheduleExecutor creates the returned TrackedTask immediately, starts
a helper OS thread, waits on that helper thread until the configured
Instant, and then runs the task on the helper thread. If the configured
instant is not in the future, the helper thread runs the task immediately.
Implementations§
Trait Implementations§
Source§impl Clone for ScheduleExecutor
impl Clone for ScheduleExecutor
Source§fn clone(&self) -> ScheduleExecutor
fn clone(&self) -> ScheduleExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Executor for ScheduleExecutor
impl Executor for ScheduleExecutor
Source§fn call<C, R, E>(&self, task: C) -> Result<TrackedTask<R, E>, SubmissionError>
fn call<C, R, E>(&self, task: C) -> Result<TrackedTask<R, E>, SubmissionError>
Starts a helper thread that waits until the scheduled instant and then runs the callable.
Auto Trait Implementations§
impl Freeze for ScheduleExecutor
impl !RefUnwindSafe for ScheduleExecutor
impl Send for ScheduleExecutor
impl Sync for ScheduleExecutor
impl Unpin for ScheduleExecutor
impl UnsafeUnpin for ScheduleExecutor
impl !UnwindSafe for ScheduleExecutor
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