pub struct AllocateMessageQueueConsistentHash { /* private fields */ }Expand description
Assigns queues through a consistent hash ring of consumer ids.
Implementations§
Trait Implementations§
Source§impl AllocateMessageQueueStrategy for AllocateMessageQueueConsistentHash
impl AllocateMessageQueueStrategy for AllocateMessageQueueConsistentHash
fn allocate( &self, consumer_group: &CheetahString, current_cid: &CheetahString, mq_all: &[MessageQueue], cid_all: &[CheetahString], ) -> Result<Vec<MessageQueue>>
fn get_name(&self) -> &'static str
Auto Trait Implementations§
impl !RefUnwindSafe for AllocateMessageQueueConsistentHash
impl !UnwindSafe for AllocateMessageQueueConsistentHash
impl Freeze for AllocateMessageQueueConsistentHash
impl Send for AllocateMessageQueueConsistentHash
impl Sync for AllocateMessageQueueConsistentHash
impl Unpin for AllocateMessageQueueConsistentHash
impl UnsafeUnpin for AllocateMessageQueueConsistentHash
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