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
//! Result wrapper that carries strategy information
/// Result wrapper that carries strategy information
///
/// This type wraps a standard `Result<T, E>` along with the name of the error
/// handling strategy that should be applied to it. This allows the pipeline
/// macro to apply different error handling strategies based on the function
/// that produced the result.
///
/// # Examples
///
/// ```rust
/// use pipex::PipexResult;
///
/// let result: PipexResult<i32, String> = PipexResult::new(Ok(42), "IgnoreHandler");
/// assert_eq!(result.strategy_name, "IgnoreHandler");
/// assert_eq!(result.result, Ok(42));
/// ```