//! Partitioning strategies for message distribution across topic partitions.
//!
//! Provides the [`Partitioner`] trait and several built-in implementations:
//!
//! - [`DefaultPartitioner`] — hash-based key partitioning (default)
//! - [`RoundRobinPartitioner`] — round-robin for keyless messages
//! - [`StickyPartitioner`] — sticks to one partition per batch
//! - [`UniformPartitioner`] — random uniform distribution
pub use DefaultPartitioner;
pub use Partitions;
pub use Topics;
pub use RoundRobinPartitioner;
pub use StickyPartitioner;
pub use UniformPartitioner;
use crateclient;
// --------------------------------------------------------------------
/// A partitioner is given a chance to choose/redefine a partition for
/// a message to be sent to Kafka. See also
/// `Record#with_partition`.
///
/// Implementations can be stateful.