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
//! Shard terminal diagnostic scenarios.

use std::error::Error;

use crate::completion::CompletionRegistryError;

use super::terminal::ProducerShardTerminalError;

#[test]
fn completion_failure_preserves_its_typed_source() {
    let error = ProducerShardTerminalError::from(CompletionRegistryError::UnsettledCompletion);

    assert_eq!(
        error.to_string(),
        CompletionRegistryError::UnsettledCompletion.to_string()
    );
    assert!(error.source().is_some());
}