Skip to main content

WorkloopWaker

Trait WorkloopWaker 

Source
pub trait WorkloopWaker: Send + Sync {
    // Required method
    fn wake<'life0, 'life1, 'async_trait>(
        &'life0 self,
        loop_id: &'life1 WorkflowId,
    ) -> Pin<Box<dyn Future<Output = Result<(), WorkloopError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Wake seam: bring a suspended loop’s current generation to a live process so the fired iteration can run (wake = load carry, run iteration, suspend — R13.3). Called only after the fire is durably recorded.

Required Methods§

Source

fn wake<'life0, 'life1, 'async_trait>( &'life0 self, loop_id: &'life1 WorkflowId, ) -> Pin<Box<dyn Future<Output = Result<(), WorkloopError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Wake the loop’s current generation.

§Errors

Returns WorkloopError when the generation cannot be woken; the sweep reports the fault and the recorded fire stands (the next sweep’s dead-man evaluation counts the unrun window — a failed wake degrades to a missed window, never to silence).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§