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
//! Explicit join from assigned-consumer admission to the embedded reactor wake.

use crate::{
    consumer::{AssignedConsumerShardWake, AssignedConsumerShardWakeError},
    driver::{ReactorWake, ReactorWakeError},
};

impl AssignedConsumerShardWake for ReactorWake {
    fn request_assigned_turn(&self) -> Result<(), AssignedConsumerShardWakeError> {
        self.request().map_err(AssignedConsumerShardWakeError::from)
    }
}

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