pub struct Message<T> { /* private fields */ }
Expand description
A message that is sent to a consumer Worker.
Implementations§
Trait Implementations§
source§impl<T> TryFrom<RawMessage> for Message<T>where
T: DeserializeOwned,
impl<T> TryFrom<RawMessage> for Message<T>where
T: DeserializeOwned,
Auto Trait Implementations§
impl<T> Freeze for Message<T>where
T: Freeze,
impl<T> RefUnwindSafe for Message<T>where
T: RefUnwindSafe,
impl<T> !Send for Message<T>
impl<T> !Sync for Message<T>
impl<T> Unpin for Message<T>where
T: Unpin,
impl<T> UnwindSafe for Message<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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MessageExt for Twhere
T: MessageSysInner,
impl<T> MessageExt for Twhere
T: MessageSysInner,
source§fn retry_with_options(&self, queue_retry_options: &QueueRetryOptions)
fn retry_with_options(&self, queue_retry_options: &QueueRetryOptions)
Marks message to be retried with options.