Skip to main content

OperationOutcomeObserver

Trait OperationOutcomeObserver 

Source
pub trait OperationOutcomeObserver:
    Debug
    + Send
    + Sync {
    // Required method
    fn on_outcome(&self, kind: TaskKind, outcome: OperationOutcome);
}
Expand description

Observes task outcomes after future destruction.

Callbacks must be short, nonblocking and panic-free, including during panic unwinding. They must not flush exporters or retain request data.

Required Methods§

Source

fn on_outcome(&self, kind: TaskKind, outcome: OperationOutcome)

Records one terminal task outcome using bounded labels.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§