pub trait TasksWithRegularPauses<Task: Future<Output = ()> + Send>: Send + Sync + 'static {
fn data(&self) -> &TasksWithRegularPausesData;
fn data_mut(&mut self) -> &mut TasksWithRegularPausesData;
fn next_task<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Task>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn sleep_duration(&self) -> Duration;
fn _task<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), InterruptError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
fn spawn(
&'static mut self,
interrupt_notifier: Receiver<()>
) -> JoinHandle<Result<(), InterruptError>> { ... }
fn suddenly<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), TrySendError<()>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
}
Expand description
See module documentation.