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
//! The named inventory is complete or construction fails.
//!
//! ```compile_fail,E0063
//! use __PROJECT_CRATE___program::{counting, pipes::Client};
//! use pipecircuit::InstalledPipe;
//! let incomplete = counting::Pipes {
//! client: InstalledPipe::<Client, _>::new(()),
//! };
//! ```
//!
//! Matching Rust values do not authorize installing the wrong nominal pipe.
//!
//! ```compile_fail,E0308
//! use app_core::{domain_primitives::Count, state_machines::Counter};
//! use __PROJECT_CRATE___program::pipes::{Counting, CounterAuthority, Request, Reply};
//! use pipecircuit::{Inline, InstalledPipe, Pipe};
//! struct OtherCounting;
//! impl Pipe for OtherCounting {
//! type In<'a> = Request;
//! type Out<'a> = Reply;
//! }
//! let counter: InstalledPipe<Counting, Inline<CounterAuthority, Counting>> =
//! InstalledPipe::new(Inline::for_pipe::<OtherCounting>(CounterAuthority::new(
//! Counter::new(Count::ZERO),
//! )));
//! ```
pipe_roster!
pub use CounterProgram;