pub enum Stage {
Filter(Box<dyn Plugin>),
External(ExternalStage),
}Expand description
What a factory produced.
Most stages are Plugins the host calls per chunk. A few cannot be: a
subprocess decides nothing synchronously, may emit nothing for the chunk it
was given, and may emit bytes belonging to three chunks ago. Rather than
bend Plugin into something a subprocess could satisfy (and lose the
property that makes it portable to WASM) such a stage is described here
and run by the host.
A WASM guest can only ever produce Stage::Filter; spawning is a host
capability by construction.
Variants§
Filter(Box<dyn Plugin>)
External(ExternalStage)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Stage
impl !Sync for Stage
impl !UnwindSafe for Stage
impl Freeze for Stage
impl Send for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
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