Struct meio::task::HeartBeat [−][src]
pub struct HeartBeat { /* fields omitted */ }
The lite task that sends ticks to a Recipient
.
Implementations
Trait Implementations
impl LiteTask for HeartBeat
[src]
impl LiteTask for HeartBeat
[src]fn repeatable_routine<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn repeatable_routine<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Routine that will be repeated till fail or success. Read more
fn retry_delay(&self, _last_attempt: Instant) -> Duration
[src]
fn retry_delay(&self, _last_attempt: Instant) -> Duration
[src]How long to wait to retry. Called by retry_at
method.
#[must_use]fn routine<'async_trait>(
self,
stop: StopReceiver
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
#[must_use]fn routine<'async_trait>(
self,
stop: StopReceiver
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]Routine of the task that can contain loops. It can taks into accout provided receiver to implement graceful interruption. Read more
impl<T> TaskEliminated<HeartBeat, ()> for T where
T: OnTick,
[src]
impl<T> TaskEliminated<HeartBeat, ()> for T where
T: OnTick,
[src]fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<HeartBeat>,
_tag: (),
_result: Result<(), TaskError>,
ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<HeartBeat>,
_tag: (),
_result: Result<(), TaskError>,
ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Called when the Task
finished.