pub enum Segment {
Inline(Pipeline),
Process(ExternalStage),
}Expand description
Everything that runs on one direction, split into segments.
One segment is the common case and runs entirely on the reading task. A
stage declared Detached starts a new segment, which the host runs on its
own task behind a bounded channel; subsequent inline stages join that
segment rather than spawning more.
One link in a chain: either stages the host calls inline, or a subprocess
it feeds and drains.
Variants§
Inline(Pipeline)
Process(ExternalStage)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Segment
impl !Sync for Segment
impl !UnwindSafe for Segment
impl Freeze for Segment
impl Send for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more