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
//! Linear settled ownership for tracked `CreateTopics` calls.

use kafka_client_core::CreateTopicsInput;

use super::create_topics_calls::SettledCreateTopicsCall;

#[test]
fn settled_input_moves_once_while_route_authority_remains_owned() {
    let mut settled =
        SettledCreateTopicsCall::from_input_for_test(CreateTopicsInput::InvalidResponse);
    assert_eq!(
        settled.take_input(),
        Some(CreateTopicsInput::InvalidResponse)
    );
    assert_eq!(settled.take_input(), None);
}