Skip to main content

AsyncProducer

Trait AsyncProducer 

Source
pub trait AsyncProducer {
    type Fut: Future<Output = Report>;

    // Required method
    fn produce(self) -> Self::Fut;
}
Expand description

An async producer that builds a Report.

dev-report::Producer is synchronous. AsyncProducer is the async equivalent that returns a future. Bridge to a sync Producer via BlockingAsyncProducer.

Required Associated Types§

Source

type Fut: Future<Output = Report>

The future returned by produce.

Required Methods§

Source

fn produce(self) -> Self::Fut

Run the producer and return a finalized Report.

Implementors§