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
//! Dispatch error handling.
use crate;
use HttpResponse;
//------------ DispatchError -------------------------------------------------
/// An error occured during dispatch.
///
/// This error type exists so you can use the question mark operator for all
/// sorts of things during dispatch to minimize clutter.
///
/// The error can either be a response sent back to the client or a fatal
/// error ending the server. Various `From<_>` impls are provided to correctly
/// translate errors into one of the two cases.