pub struct Pipeline { /* private fields */ }Expand description
Implementations§
Source§impl Pipeline
impl Pipeline
Sourcepub fn start(self) -> (PipelineEnds, DriverFuture)
pub fn start(self) -> (PipelineEnds, DriverFuture)
Wire fresh external PipelineEnds and return them with the driving
future. The caller drives the future (e.g. block_on) and uses the ends
to feed the head and read the tail.
Trait Implementations§
Source§impl Processor for Pipeline
impl Processor for Pipeline
Source§fn decide_data(&mut self, _frame: &DataFrame) -> Decision<()>
fn decide_data(&mut self, _frame: &DataFrame) -> Decision<()>
Maps an incoming data frame to a disposition and zero or more effects. Read more
Source§fn decide_system(
&mut self,
_dir: Direction,
_frame: &SystemFrame,
) -> Decision<()>
fn decide_system( &mut self, _dir: Direction, _frame: &SystemFrame, ) -> Decision<()>
Maps an incoming system frame to a disposition and zero or more effects. Read more
Source§impl Stage for Pipeline
impl Stage for Pipeline
Source§fn run<'async_trait>(
self: Box<Self>,
inbound: Inbound,
out: Outbound,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Box<Self>,
inbound: Inbound,
out: Outbound,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
Wire the children between inbound and out and drive every child’s
run cooperatively as one future via FuturesUnordered.
Source§fn perform<'life0, 'life1, 'async_trait>(
&'life0 self,
_effect: (),
_out: &'life1 Outbound,
) -> Pin<Box<dyn Future<Output = Result<(), StageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn perform<'life0, 'life1, 'async_trait>(
&'life0 self,
_effect: (),
_out: &'life1 Outbound,
) -> Pin<Box<dyn Future<Output = Result<(), StageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Interpret one effect emitted by
decide_* and carry out its I/O, sending
any resulting frames through out. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Pipeline
impl !UnwindSafe for Pipeline
impl Freeze for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl UnsafeUnpin for Pipeline
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