pub struct MemoryConsumerBackend { /* private fields */ }Expand description
内存消费者后端
Implementations§
Source§impl MemoryConsumerBackend
impl MemoryConsumerBackend
Sourcepub fn new(config: ConsumerConfig, manager: Arc<MemoryQueueManager>) -> Self
pub fn new(config: ConsumerConfig, manager: Arc<MemoryQueueManager>) -> Self
创建新的内存消费者后端
Trait Implementations§
Source§impl ConsumerBackend for MemoryConsumerBackend
impl ConsumerBackend for MemoryConsumerBackend
Source§fn receive_raw<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = WaeResult<Option<ReceivedRawMessage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_raw<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = WaeResult<Option<ReceivedRawMessage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
接收原始消息
Source§fn ack<'life0, 'async_trait>(
&'life0 self,
delivery_tag: u64,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack<'life0, 'async_trait>(
&'life0 self,
delivery_tag: u64,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
确认消息
Source§fn nack<'life0, 'async_trait>(
&'life0 self,
delivery_tag: u64,
requeue: bool,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn nack<'life0, 'async_trait>(
&'life0 self,
delivery_tag: u64,
requeue: bool,
) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
拒绝消息
Source§fn config(&self) -> &ConsumerConfig
fn config(&self) -> &ConsumerConfig
获取消费者配置
Auto Trait Implementations§
impl Freeze for MemoryConsumerBackend
impl !RefUnwindSafe for MemoryConsumerBackend
impl Send for MemoryConsumerBackend
impl Sync for MemoryConsumerBackend
impl Unpin for MemoryConsumerBackend
impl UnsafeUnpin for MemoryConsumerBackend
impl !UnwindSafe for MemoryConsumerBackend
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