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
/*!
Example of chastising bad/dummy clients for sending commands before the banner (spam/abuse control).
## Testing
```bash
cargo run --example prudent &
nc -C localhost 2525
```
If you issue a command before the timeout, a prudent error is shown.
If you wait long enough, the dummy service unavailable error is shown.
*/
use Duration;
use task;
use ;
type Result<T> = Result;
async