pub struct AllocateMessageQueueAveragelyByCircle;Expand description
Allocates every Nth queue to each consumer.
Trait Implementations§
Source§impl AllocateMessageQueueStrategy for AllocateMessageQueueAveragelyByCircle
impl AllocateMessageQueueStrategy for AllocateMessageQueueAveragelyByCircle
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 Freeze for AllocateMessageQueueAveragelyByCircle
impl RefUnwindSafe for AllocateMessageQueueAveragelyByCircle
impl Send for AllocateMessageQueueAveragelyByCircle
impl Sync for AllocateMessageQueueAveragelyByCircle
impl Unpin for AllocateMessageQueueAveragelyByCircle
impl UnsafeUnpin for AllocateMessageQueueAveragelyByCircle
impl UnwindSafe for AllocateMessageQueueAveragelyByCircle
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