Skip to main content

Observer

Trait Observer 

Source
pub trait Observer: Sync {
    // Required method
    fn phase(
        &self,
        task: &str,
        participant: &str,
        phase: &str,
    ) -> impl Future<Output = Result<(), Problem>> + Send;
}
Expand description

Receives progress when a task operation reaches a participant step.

Required Methods§

Source

fn phase( &self, task: &str, participant: &str, phase: &str, ) -> impl Future<Output = Result<(), Problem>> + Send

Deliver the named progress step for one task participant.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§