Skip to main content

Module queue

Module queue 

Source
Expand description

Producer/worker contracts and feature-gated queue backends.

Modules§

memory
Shared in-process queues with different std and no_std behavior. Shared in-process task/response queues; cloning shares the same storage.
nats
JSON request/reply over Core NATS; requires std and a Tokio runtime. JSON request/reply on Core NATS, without JetStream persistence or task retries.

Structs§

WrappedTask
A task paired with the backend metadata needed to route its reply.

Traits§

QueueProducer
Submits tasks and retrieves their responses.
QueueWorker
Receives queued tasks and routes their responses back to producers.