Debian Codegraph @

src/result.rs

raw symbols SCIP
1 use std::io;
2
3 pub enum StageActions<T> {
4
5 // Abort the entire pipeline (returning an error).
6 Abort,
7
8 // Stop the current stage, and call the next stage with the input data.
9 Skip,
10
11 // Continue to the next pipeline stage, passing the given data.
12 Next(T),
13
14 // Jump (x) number of pipeline stages in the future, passing the given data.
15 Jump(u8, T),
16
17 // Finish the entire pipeline early with the given data.
18 Finish(T),
19 }
20
21 pub type StageResult<T> = Result<StageActions<T>, io::Error>;