Struct worker::BatchMessageBuilder
source · pub struct BatchMessageBuilder<T> { /* private fields */ }
Implementations§
source§impl<T> BatchMessageBuilder<T>
impl<T> BatchMessageBuilder<T>
sourcepub fn message<U: Into<SendMessage<T>>>(self, message: U) -> Self
pub fn message<U: Into<SendMessage<T>>>(self, message: U) -> Self
Adds a message to the batch.
sourcepub fn delay_seconds(self, delay_seconds: u32) -> Self
pub fn delay_seconds(self, delay_seconds: u32) -> Self
The number of seconds to delay a message for within the queue, before it can be delivered to a consumer
pub fn build(self) -> BatchSendMessage<T>
Auto Trait Implementations§
impl<T> Freeze for BatchMessageBuilder<T>
impl<T> RefUnwindSafe for BatchMessageBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for BatchMessageBuilder<T>where
T: Send,
impl<T> Sync for BatchMessageBuilder<T>where
T: Sync,
impl<T> Unpin for BatchMessageBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for BatchMessageBuilder<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