Module apalis::prelude

source ·
Expand description

Common imports

Re-exports§

Structs§

  • Middleware for adding some shareable value to [request data].
  • A wrapper to keep count of the attempts tried by a task
  • BackendStream is a wrapper around another stream S. It controls the flow of the stream based on the Controller state.
  • Stores the Workers context
  • The Controller struct represents a thread-safe state manager. It uses AtomicUsize for state to ensure safe concurrent access. Used to control polling
  • Extension data for tasks. This is commonly used to share state across tasks. or across layers within the same tasks
  • A type map of protocol extensions.
  • Tells the poller that the worker is ready for a new request
  • An example of the basics of a backend
  • In-memory queue that implements Stream
  • A monitor for coordinating and managing a collection of workers.
  • The internal context of a Monitor Usually shared with multiple workers
  • The Notify struct encapsulates asynchronous, multi-producer, single-consumer (MPSC) channel functionality. It is used to send notifications of type T from multiple producers to a single consumer.
  • A poller type that allows fetching from a stream and a heartbeat future that can be used to do periodic tasks
  • A worker that is ready for running
  • Represents a job which can be serialized and executed
  • An executable service implemented by a closure.
  • A wrapper type that defines a task id.
  • Represents a generic Worker that can be in many different states
  • Allows building a Worker. Usually the output is Worker<Ready>
  • A worker name wrapper usually used by Worker builder

Enums§

  • Represents a general error returned by a task or by internals of the platform
  • Events emitted by a worker
  • Possible errors that can occur when starting a worker.

Traits§

Functions§

Type Aliases§