1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Typed errors for the queue producer surface.
//!
//! Framework crates surface `thiserror` enums, not `anyhow`. An enqueue can
//! fail two ways: serializing the job to its JSON wire form, or inside the
//! backend's push. The backend failure is kept behind a boxed `source` so this
//! contract names no concrete backend — a Redis backend wraps its apalis/Redis
//! error, an SQS backend its SDK error, without this crate depending on either.
use Error;
/// A failure enqueuing a job through a [`JobProducer`](crate::JobProducer) (or
/// the [`push`](crate::JobProducerExt::push) convenience over it).