Expand description
Represents a queue in the backend
This module provides the Queue struct and related functionality for managing
queues in the backend. A queue is identified by its name and is used to group
tasks for processing by workers.
The Queue struct is designed to be lightweight and easily clonable, allowing
it to be passed around in various contexts. It uses an Arc<String> internally
to store the queue name, ensuring efficient memory usage and thread safety.
The module also includes an implementation of the FromRequest trait, allowing
extraction of the queue information from a task context. This is useful for
workers that need to know which queue they are processing tasks from.
Structs§
- Queue
- Represents a queue in the backend
Enums§
- Queue
Error - Errors that can occur when extracting queue information from a task context