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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! The [`Pipeline`] trait: driving a composed set of stages.
//!
//! A pipeline owns (or is given) a source, decoder, optional
//! preprocessors, placement, and sinks. Concrete pipelines are normally
//! built via the `flyby` facade builder rather than implemented by hand.
//!
//! ## Wiring
//!
//! Stage registration may be build-time only. [`register_sink`][Pipeline::register_sink]
//! is the late-attach hook for plugin sinks; sources, decoders, and
//! placement are typically fixed at construction.
//!
//! This trait is not object-safe (associated type + methods taking
//! `Self::Message`); use generics.
//!
//! ## Event loop
//!
//! Prefer driving the pipeline with [`step`][Pipeline::step] (or
//! [`step_outcome`][Pipeline::step_outcome]) from the application or
//! builder. [`super::Lifecycle::run`] is optional convenience.
use ;
/// Outcome of one pipeline step.
/// A composed, runnable pipeline.
///
/// Implementations own their stages and drive them through the
/// [`Lifecycle`] phases. The pipeline is responsible for back-pressure
/// between stages and for surfacing per-stage metrics.