pub struct DeadLetterQueue { /* private fields */ }Expand description
Dead letter queue.
Implementations§
Source§impl DeadLetterQueue
impl DeadLetterQueue
Sourcepub fn enqueue(
&mut self,
envelope: MessageEnvelope,
reason: DeadLetterReason,
destination: KernelId,
attempts: u32,
)
pub fn enqueue( &mut self, envelope: MessageEnvelope, reason: DeadLetterReason, destination: KernelId, attempts: u32, )
Route a message to the DLQ.
Sourcepub fn replay<F>(&mut self, filter: F) -> Vec<DeadLetter>
pub fn replay<F>(&mut self, filter: F) -> Vec<DeadLetter>
Replay messages from the DLQ matching a filter.
Returns messages removed from the DLQ for re-delivery.
Sourcepub fn replay_for(&mut self, destination: &KernelId) -> Vec<DeadLetter>
pub fn replay_for(&mut self, destination: &KernelId) -> Vec<DeadLetter>
Replay all messages destined for a specific actor.
Sourcepub fn expire_old(&mut self) -> u64
pub fn expire_old(&mut self) -> u64
Expire messages older than max_age.
Sourcepub fn browse(&self, limit: usize) -> Vec<&DeadLetter>
pub fn browse(&self, limit: usize) -> Vec<&DeadLetter>
Browse the DLQ contents (non-destructive).
Sourcepub fn metrics(&self) -> DlqMetrics
pub fn metrics(&self) -> DlqMetrics
Get DLQ metrics.
Auto Trait Implementations§
impl Freeze for DeadLetterQueue
impl RefUnwindSafe for DeadLetterQueue
impl Send for DeadLetterQueue
impl Sync for DeadLetterQueue
impl Unpin for DeadLetterQueue
impl UnsafeUnpin for DeadLetterQueue
impl UnwindSafe for DeadLetterQueue
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.