Expand description
Pure, typed actor-behavior primitives.
Protocol is stable public destination identity (Addr plus Msg). A
Behavior separately owns state and folds its complete Behavior::Event
algebra into exactly Actions: sends, fresh creations, and its next
behavior or termination. A protocol is not a behavior, and Behavior is not
a Protocol supertrait. Higher capabilities extend internal event and
effect algebras while transparent wrappers preserve Behavior::Protocol.
Structs§
- Action
Reducer - A left fold over Bombay actions.
- Actions
- Bombay’s typed realization of the actor transition effects: communications, fresh actor creation, and next behavior or termination.
- Active
Turn - Capability for defining one active mailbox fold.
- Birth
Protocol - One behavior protocol followed by the remaining closed birth projection.
- Birth
Protocol Head - Structural position selecting the current projected birth protocol.
- Birth
Protocol Tail - Structural position selecting inside the remaining protocol projection.
- Births
- This behavior may emit births of
C. - Child
Cons - One creation appended to an ordered heterogeneous child product.
- Child
Head - Position selecting the head of a closed
ChildChoicesum. - Child
Recipient - A creator-local route to one staged or established direct child.
- Child
Route - A named creator-local route for one statically declared child role.
- Child
Tail - Position selecting inside the tail of a closed
ChildChoicesum. - Children
- A pure, ordered heterogeneous product of staged direct-child creations.
- Create
- A staged request to establish a fresh child at a creator-local nonce.
- Delivery
- One pure communication addressed to a concrete protocol signature.
- Effect
- Effects emitted by one ordinary infallible, no-birth behavior turn.
- Effects
- The accumulated observable effects of a transition prefix.
- Fold
Failure - A controlled fold failure together with every previously committed effect.
- Folded
- The result of folding initialization and an event stream.
- Here
- The current layer of a structurally composed event algebra owns an input.
- Ingress
- Address-free destination for one interpreter-originated input.
- Initialization
Turn - Capability for defining one initialization fold.
- Inside
- An inner event algebra owns an input at
Path. - Interpreter
Requests - Requests interpreted by the runtime local to the emitting actor.
- Mail
Addr - Message
Protocol - Reusable zero-state protocol identity for messages
Maddressed byA. - NoBirth
Protocols - Empty protocol projection of a closed behavior-birth algebra.
- NoBirths
- This behavior cannot emit child births.
- NoChildren
- The empty heterogeneous creation product.
- NoSends
- Send effects containing no communications or interpreter requests.
- Recipient
- Pure established identity for one concrete destination protocol signature.
- Returns
ToEmitter - An interpreter request whose later
Inputreturns to the emitting actor atPath, relative to the effect lane that owns the request. - Send
Layer - Send effects introduced by one wrapper around inner send effects.
- Stopped
- The behavior has designated termination as its next state.
- User
- The user-message event at the Agha floor.
Enums§
- Child
Choice - One alternative in a closed, recursively composed child-creation sum.
- Children
Error - Rejection while converting a heterogeneous child product into creations.
- Creation
Kind - Behavior-owned provenance for a staged fresh actor creation request.
- Delivery
Target - Exhaustive destination of one delivery.
- Event
Layer - One statically owned input lane composed in front of an inner event algebra.
- Never
- The uninhabited type with two structural jobs. As a phase menu,
Step<Never>has no constructibleGoto— a plain actor is a one-phase machine. As an outbound/offspring menu, it proves a layer sends or creates nothing. The law is the type, not a convention. - NoReturn
ToEmitter - An interpreter request that produces no later fact for the emitting actor.
- Own
- The lane owned by the current named send product.
- Step
- A generic next-state verdict. Bombay Behavior pins
RtoStopped, so actor-specific lifecycle data cannot enter thebecomeseat.
Traits§
- Address
- A pure actor-address namespace.
- Append
Send - Capability to append one communication at a statically selected lane while preserving every other actor-transition effect.
- Behavior
- A composed pure behavior.
Eventis the complete accepted input algebra; the separately declaredProtocolis stable public destination identity, and every successful transition returns the declaredActionsvalue. - Behavior
Base - Static projection from a composed behavior to its authored base behavior.
- Birth
Mode - A type-level description of a behavior’s creation capability.
- Birth
Protocol At - Static membership evidence for one occurrence in a birth-protocol product.
- Birth
Protocols - Closed static projection of a behavior’s own protocol and every protocol reachable through its transitive staged-birth algebra.
- Child
Position - Static proof that
ChildoccupiesPositionin a closed child sum. - Child
Product - Closed recursive conversion implemented only by Bombay child products.
- Child
Role - Static proof that
Rolenames one exact direct child ofParent. - Composed
Event - A complete event algebra formed by adding owned inputs around an inner behavior event algebra.
- Dispatch
Birth - Exhaustive static dispatch of one creation-only child sum.
- Inject
Event - Path-indexed injection into a structural event coproduct.
- Install
Birth - Static interpreter capability for installing one concrete child behavior.
- Interpret
Delivery - Interpreter capability for deliveries to one concrete actor protocol.
- Interpret
Request - Interpreter capability for one request at one exact root-event path.
- Interpret
Sends - Static interpretation of one complete sends value at an absolute event path.
- Interpreter
Request - Declares only the continuation returning to the actor that emitted this interpreter request. Destinations owned by a child, parent, ancestor, or established actor are separate capabilities and are not reindexed when the emitter is wrapped.
- Protocol
- The statically known address and message signature of an actor protocol.
- Send
Effects - Send effects emitted by a pure actor transition.
- Send
Input - Static evidence that a sends type contains one request lane.
- Send
Interpreter - Error domain shared by one concrete effect interpreter.
- Sends
For - Proof that send effects are lawful for one complete event type.
- User
Event - Construction/extraction of the user lane through a composed event type.
Functions§
- fold_
events - Initialize a behavior and left-fold events until exhaustion, controlled failure, or the first stop verdict.
Type Aliases§
- Acted
- Become
- Behavior
Acted - The only successful effect shape admitted by a
Behaviorimplementation. - Behavior
Addr - Address namespace projected from a behavior’s stable public protocol.
- Behavior
Message - Public message algebra projected from a behavior’s stable protocol.
Attribute Macros§
- behavior
- Generate the nominal protocol, closed effect products, and exact
Behaviorwiring for an inherent impl.addrandmessageare required. Omittingsends,births, orerrorselects the capability-freeNoSends,NoBirths, orNevertype respectively.