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
//! Metrics reporting.
//!
//! This module defines a trait that allows users to define custom metrics
//! reporting.
use cratePDU;
use Bytes;
/// dvb-gse metrics reporting.
///
/// This trait is used to implement custom metrics reporting for dvb-gse. The
/// methods defined by this trait are called when certain events happen in the
/// dvb-gse processing. By default, all the methods do nothing. Trait
/// implementors can override some or all of these methods to update and report
/// metrics.
/// Implementation of [`Metrics`] for `()`.
///
/// The type `()` is used when the user does not provide a custom object
/// implementing metrics. This implementation ignores all the calls to the trait
/// methods.