1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#![cfg_attr(feature = "nightly", feature(test))]
extern crate byteorder;
extern crate crc;
extern crate ref_slice;
extern crate fnv;
#[macro_use]
extern crate log;
#[cfg(feature = "security")]
extern crate openssl;
#[cfg(feature = "gzip")]
extern crate flate2;
#[cfg(feature = "snappy")]
extern crate snappy;
#[cfg(all(test, feature = "nightly"))]
extern crate test;
pub mod error;
pub mod client;
mod client_internals;
pub mod consumer;
pub mod producer;
mod utils;
mod codecs;
mod protocol;
mod compression;
pub use self::error::{Error, Result};
trait KafkaClientInternals {
fn internal_produce_messages<'a, 'b, I, J>(
&mut self, ack: client::RequiredAcks, ack_timeout: i32, messages: I)
-> Result<Vec<client::TopicPartitionOffset>>
where J: AsRef<client::ProduceMessage<'a, 'b>>, I: IntoIterator<Item=J>;
}