use pipecircuit::{Inline, InstalledPipe, Pipe, StateMachine, StepInputOf};
struct Protocol;
impl Pipe for Protocol {
type In<'message> = Input;
type Out<'message> = u8;
}
struct Implementation;
impl StateMachine for Implementation {}
struct Input;
impl StepInputOf<Implementation> for Input {
type Outcome = u16;
fn step(self, _: &mut Implementation) -> u16 { 0 }
}
fn main() {
let mut installed = InstalledPipe::<Protocol, _>::new(Inline::for_pipe(Implementation));
installed.send(Input);
}