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
#[derive(Fail, Debug)]
pub enum ArrayError {
#[fail(display = "Null encountered (pos: _0) in string: _1")]
NullPresent(usize, String),
#[fail(display = "Length of {} is too long", _0)]
TooLong(usize),
}
#[derive(Fail, Debug)]
pub enum SubmitError {
#[fail(display = "plugin_dispatch_values returned an error: {}", _0)]
DispatchError(i32),
}
#[derive(Fail, Debug)]
#[fail(display = "Function is not implemented")]
pub struct NotImplemented;
#[derive(Fail, Debug)]
#[fail(display = "Unable to retrieve rate (see collectd logs for additional details)")]
pub struct CacheRateError;