pub struct AutoProducer { /* private fields */ }Expand description
Auto-producer for fixtures
Implementations§
Source§impl AutoProducer
impl AutoProducer
Sourcepub fn new(
broker: Arc<KafkaMockBroker>,
template_engine: TemplateEngine,
) -> Self
pub fn new( broker: Arc<KafkaMockBroker>, template_engine: TemplateEngine, ) -> Self
Create a new auto-producer
Sourcepub async fn add_fixture(&self, fixture: KafkaFixture)
pub async fn add_fixture(&self, fixture: KafkaFixture)
Add a fixture for auto-production
Sourcepub async fn stop_fixture(&self, fixture_id: &str)
pub async fn stop_fixture(&self, fixture_id: &str)
Stop auto-producing for a specific fixture
Auto Trait Implementations§
impl Freeze for AutoProducer
impl !RefUnwindSafe for AutoProducer
impl Send for AutoProducer
impl Sync for AutoProducer
impl Unpin for AutoProducer
impl !UnwindSafe for AutoProducer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more