pub struct Murmur3HashHasher;Expand description
Pick the partition by hashing the message’s UTF-8-encoded partition key with
murmur3_32_hash (Apache Pulsar Murmur3_32Hash, seed 0), then hash % partitions. Falls back to round-robin via OutgoingMessage::key being None or
empty.
Wire-compatible with Java’s HashingScheme.Murmur3_32Hash so Java, C++, Go, and
magnetar producers route the same key to the same partition.
Trait Implementations§
Source§impl Clone for Murmur3HashHasher
impl Clone for Murmur3HashHasher
Source§fn clone(&self) -> Murmur3HashHasher
fn clone(&self) -> Murmur3HashHasher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Murmur3HashHasher
Source§impl Debug for Murmur3HashHasher
impl Debug for Murmur3HashHasher
Source§impl Default for Murmur3HashHasher
impl Default for Murmur3HashHasher
Source§fn default() -> Murmur3HashHasher
fn default() -> Murmur3HashHasher
Returns the “default value” for a type. Read more
Source§impl MessageRouter for Murmur3HashHasher
impl MessageRouter for Murmur3HashHasher
Auto Trait Implementations§
impl Freeze for Murmur3HashHasher
impl RefUnwindSafe for Murmur3HashHasher
impl Send for Murmur3HashHasher
impl Sync for Murmur3HashHasher
impl Unpin for Murmur3HashHasher
impl UnsafeUnpin for Murmur3HashHasher
impl UnwindSafe for Murmur3HashHasher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more