pub struct AllocateMessageQueueByConfig { /* private fields */ }Expand description
Returns a statically configured set of queues.
Implementations§
Source§impl AllocateMessageQueueByConfig
impl AllocateMessageQueueByConfig
pub fn new(message_queue_list: Vec<MessageQueue>) -> Self
Trait Implementations§
Source§impl AllocateMessageQueueStrategy for AllocateMessageQueueByConfig
impl AllocateMessageQueueStrategy for AllocateMessageQueueByConfig
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 AllocateMessageQueueByConfig
impl RefUnwindSafe for AllocateMessageQueueByConfig
impl Send for AllocateMessageQueueByConfig
impl Sync for AllocateMessageQueueByConfig
impl Unpin for AllocateMessageQueueByConfig
impl UnsafeUnpin for AllocateMessageQueueByConfig
impl UnwindSafe for AllocateMessageQueueByConfig
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