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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Controller configuration.
//!
//! [`ControllerConfig`] controls controller buffering:
//! - `max_slot_queue` limits pending submissions inside each slot,
//! - `queue_capacity` limits the controller's intake channel.
//!
//! These are different queues.
//! `queue_capacity` is about getting a submission into the controller.
//! `max_slot_queue` is about how many accepted submissions may wait behind a busy slot.
/// Configuration for the controller.
///
/// Passed to `SupervisorBuilder::with_controller`.
///
/// # Example
///
/// ```rust
/// use taskvisor::ControllerConfig;
///
/// let config = ControllerConfig {
/// queue_capacity: 1024,
/// max_slot_queue: 100,
/// };
/// ```