agner_sup/common/
gen_child_spec.rs

1mod args_call;
2mod args_clone;
3mod args_unique;
4mod gen_child_spec_impl;
5mod traits;
6
7#[cfg(test)]
8mod tests;
9
10use std::marker::PhantomData;
11
12#[cfg(feature = "reg")]
13use agner_reg::RegTx;
14pub use traits::{CreateArgs, CreateChild};
15
16use crate::common::init_type::InitType;
17
18/// A base for both [uniform](crate::uniform::UniformChildSpec) and
19/// [mixed](crate::mixed::MixedChildSpec) child specifications.
20pub struct GenChildSpec<B, A, M, X> {
21    behaviour: B,
22    create_args: A,
23    message: PhantomData<M>,
24    init_type: InitType,
25
26    #[cfg(feature = "reg")]
27    reg_tx: Option<RegTx>,
28
29    ext: X,
30}