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
//! Command protocol accepted by the persistent client-pool scheduler.
//!
//! The mailbox is the only way to reach scheduler state. Closing the mailbox
//! is therefore also the shutdown signal for the implicit case: when the final
//! [`SchedulerHandle`](super::SchedulerHandle) is dropped, the task observes a
//! closed receiver and releases its pool reference.
//!
//! Capacity release deliberately has no command. A released permit is observed
//! by the task's in-flight permit race, which keeps the protocol small and
//! avoids a per-release message that could arrive after shutdown.
use WaiterSender;
use crateSerializer;
/// One message delivered to the pool scheduler task.
pub