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
//! Producer-shard adaptation over the shared domain-neutral reactor wake.

use crate::driver::{ReactorWake, ReactorWakeError};

use super::{ProducerShardWake, ProducerShardWakeError};

impl ProducerShardWake for ReactorWake {
    fn wake(&self) -> Result<(), ProducerShardWakeError> {
        self.request().map_err(ProducerShardWakeError::from)
    }
}

impl From<ReactorWakeError> for ProducerShardWakeError {
    fn from(error: ReactorWakeError) -> Self {
        Self::from_io(error.into_io())
    }
}