Skip to main content

ChildRole

Trait ChildRole 

Source
pub trait ChildRole<Parent: Behavior> {
    type Child: Behavior;
    type Position: ChildPosition<<Parent::Birth as BirthMode>::Child, Self::Child>;
}
Expand description

Static proof that Role names one exact direct child of Parent.

Behavior authoring owns this relationship. A runtime may use the proof to build application topology, but the role itself allocates nothing and is not evidence that the child was created or installed.

Required Associated Types§

Source

type Child: Behavior

The only child behavior accepted at this role.

Source

type Position: ChildPosition<<Parent::Birth as BirthMode>::Child, Self::Child>

Structural position of this role in Parent’s closed child sum.

Implementors§