Struct worker::MessageBatch
source · pub struct MessageBatch<T> { /* private fields */ }
Expand description
A batch of messages that are sent to a consumer Worker.
Implementations§
source§impl<T> MessageBatch<T>
impl<T> MessageBatch<T>
sourcepub fn retry_all_with_options(&self, queue_retry_options: &QueueRetryOptions)
pub fn retry_all_with_options(&self, queue_retry_options: &QueueRetryOptions)
Marks every message to be retried in the next batch with options.
sourcepub fn raw_iter(&self) -> RawMessageIter ⓘ
pub fn raw_iter(&self) -> RawMessageIter ⓘ
Iterator for raw messages in the message batch. Ordering of messages is not guaranteed.
source§impl<T: DeserializeOwned> MessageBatch<T>
impl<T: DeserializeOwned> MessageBatch<T>
Trait Implementations§
source§impl<T> From<MessageBatch> for MessageBatch<T>
impl<T> From<MessageBatch> for MessageBatch<T>
source§fn from(value: MessageBatchSys) -> Self
fn from(value: MessageBatchSys) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for MessageBatch<T>
impl<T> RefUnwindSafe for MessageBatch<T>where
T: RefUnwindSafe,
impl<T> !Send for MessageBatch<T>
impl<T> !Sync for MessageBatch<T>
impl<T> Unpin for MessageBatch<T>where
T: Unpin,
impl<T> UnwindSafe for MessageBatch<T>where
T: UnwindSafe,
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