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§
Sourceasync fn start_producer(&mut self) -> ClientResult<()>
async fn start_producer(&mut self) -> ClientResult<()>
Sourceasync fn shutdown_producer(&mut self)
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".