Skip to main content

ProducerLifecycle

Trait ProducerLifecycle 

Source
pub trait ProducerLifecycle {
    // Required methods
    async fn start_producer(&mut self) -> ClientResult<()>;
    async fn shutdown_producer(&mut self);
}
Expand description

Producer startup and shutdown capability.

Required Methods§

Source

async fn start_producer(&mut self) -> ClientResult<()>

Starts the producer.

§Errors

Returns the existing typed client error when startup fails.

Source

async fn shutdown_producer(&mut self)

Shuts down producer-owned work.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§