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
//! RLM processing result type.
use ;
/// RLM processing result.
///
/// `trace` is populated when the caller supplied a session bus so
/// downstream consumers can reconstruct iteration-by-iteration
/// behaviour. `trace_id` is always generated and echoed on the
/// matching `RlmComplete` session event
/// event for correlation.
///
/// # Examples
///
/// ```rust
/// use codetether_rlm::{RlmResult, RlmStats};
///
/// let r = RlmResult {
/// processed: "summary".into(),
/// stats: RlmStats::default(),
/// success: true,
/// error: None,
/// trace: None,
/// trace_id: None,
/// };
/// assert!(r.success);
/// assert!(r.trace.is_none());
/// ```