pub struct Actions<A: Address, Ph, Sends, Birth: BirthMode> {
pub sends: Sends,
pub creates: Vec<Create<A, Birth::Child>>,
pub become_: Become<A, Ph>,
}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. 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::Child>>§become_: Become<A, Ph>Implementations§
Source§impl<A: Address, Ph, Sends, Birth: BirthMode> Actions<A, Ph, Sends, Birth>
impl<A: Address, Ph, Sends, Birth: BirthMode> Actions<A, Ph, Sends, Birth>
Trait Implementations§
Auto Trait Implementations§
impl<A, Ph, Sends, Birth> Freeze for Actions<A, Ph, Sends, Birth>
impl<A, Ph, Sends, Birth> RefUnwindSafe for Actions<A, Ph, Sends, Birth>where
Sends: RefUnwindSafe,
Ph: RefUnwindSafe,
A: RefUnwindSafe,
<A as Address>::Nonce: RefUnwindSafe,
<Birth as BirthMode>::Child: RefUnwindSafe,
impl<A, Ph, Sends, Birth> Send for Actions<A, Ph, Sends, Birth>
impl<A, Ph, Sends, Birth> Sync for Actions<A, Ph, Sends, Birth>
impl<A, Ph, Sends, Birth> Unpin for Actions<A, Ph, Sends, Birth>
impl<A, Ph, Sends, Birth> UnsafeUnpin for Actions<A, Ph, Sends, Birth>
impl<A, Ph, Sends, Birth> UnwindSafe for Actions<A, Ph, Sends, Birth>where
Sends: UnwindSafe,
Ph: UnwindSafe,
A: UnwindSafe,
<A as Address>::Nonce: UnwindSafe,
<Birth as BirthMode>::Child: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more