pub struct Actions<A, Ph, Sends, Birth>{
pub sends: Sends,
pub creates: Vec<Create<A, <Birth as BirthMode>::Child>>,
pub become_: Step<Ph, Exit<A>>,
}Expand description
Bombay’s typed realization of the actor transition effects: communications, fresh actor creation, and next behavior or termination.
An interpreter resolves every fresh creation in creates before
interpreting any ordinary delivery or crate::ServiceSends request in
sends from this value. A successful resolution installs and binds the
child; a rejected resolution binds nothing. This ordering lets a same-action
crate::ObserveCreation request return the committed result rather than
the behavior’s intent. When creation is rejected, a same-action
crate::ObserveChild for its nonce is consumed without installing an
observation or emitting crate::ChildStopped, while
crate::ObserveCreation reports the rejection. A later creation cannot
inherit that consumed observation. Creation order is vector order, and each
concrete send lane retains its own order; this contract does not impose an
order between independent lanes of a crate::SendProduct. Constructing a
value remains pure.
Fields§
§sends: Sends§creates: Vec<Create<A, <Birth as BirthMode>::Child>>§become_: Step<Ph, Exit<A>>