kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Focused producer host fault controls available only to unit evidence.

use super::{ProducerHost, ProducerHostInvariantError};

impl ProducerHost {
    pub(in crate::producer) fn inject_post_acceptance_fault(
        &mut self,
        error: ProducerHostInvariantError,
    ) {
        self.post_acceptance_fault = Some(error);
    }

    pub(in crate::producer) fn take_post_acceptance_fault(
        &mut self,
    ) -> Option<ProducerHostInvariantError> {
        self.post_acceptance_fault.take()
    }
}