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.
Finite mailbox execution belongs to a runtime or test driver, not to this one-turn behavior algebra.
ⓘ
fn requires_reducer<T: behavior::ActionReducer>() {}Capability-restricted action products use the existing Actions algebra;
there is no second convenience wrapper with an overlapping contract.
ⓘ
fn accepts_duplicate(_: behavior::Effect<u8>) {}Structs§
- Action
Settlement - Complete owned settlement of one
Actionsvalue. - 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
Creation Settled - One complete child-creation settlement returned to its creator.
- Child
Delivery - Same-action communication to one declared creator-local role.
- Child
Head - Position selecting the head of a closed
ChildChoicesum. - Child
Input - Private typed communication to one declared creator-local child role.
- Child
Namespace Exhausted - The creator namespace cannot route an entire declared creation batch.
- Child
Report - One report emitted through an established creator/child relationship.
- Child
Tail - Position selecting inside the tail of a closed
ChildChoicesum. - Children
- A pure, ordered heterogeneous product of staged direct-child creations.
- Committed
Child - One committed fresh child with its creator-local provenance and exact installed actor. The occurrence distinguishes equal child behaviors in distinct static positions; it is not an actor identity or runtime route.
- Create
Child - A staged request to establish one fresh child.
- Creation
Correlation - Non-authoritative correlation to one creation result in the current action.
- Creation
Id - Correlation for one staged creation within a static child occurrence.
- Creation
Sequence - Checked source of IDs that are not reused within one child occurrence.
- Creations
- One ordered creation batch.
- Creations
Settled - One complete creation batch returned to its live creator.
- Declared
Child Occurrence - Sealed descriptor for one nominal child occurrence declared by
Parent. - Delivery
- Established
Actor - Inert capability for one exact installed concrete behavior.
- Established
Delivery - One pure communication to an exact installed incarnation.
- Established
Recipient - Inert capability for one exact protocol endpoint.
- 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 logical destination for one concrete protocol signature.
- Report
ToParent - Transfer one owned report to the emitter’s established parent.
- Retirement
Births - This behavior may emit births of
Cwhose exact settlements remain in runtime custody until actor retirement. - Retirement
Creation Settlement - Exact creation settlement deliberately retained for actor retirement.
- Returns
ToEmitter - An interpreter request whose later
Inputreturns to the emitting actor atPath, relative to the effect lane that owns the request. - Routed
Creation - One complete creation paired with a route selected by the interpreter.
- Send
Layer - Send effects introduced by one wrapper around inner send effects.
- Source
Actions - Ordered actions whose normalized results return to their emitting actor.
- Source
Settlements - Exact results for one
SourceActionslane. - Stopped
- The behavior has designated termination as its next state.
- User
- The user-message event at the Agha floor.
Enums§
- Allocation
Rejection - Failure to claim an address fresh with respect to the current actor configuration.
- Child
Choice - One alternative in a closed, recursively composed child-creation sum.
- Child
Creation Outcome - Complete result after a runtime accepts one child definition.
- Child
Delivery Reason - Exact reason one public child delivery was not accepted.
- Child
Input Reason - Exact reason one private child input was not accepted.
- Creation
Event - Complete event algebra for an ordinary creator that receives its exact creation settlements as a later behavior input.
- Creation
Interpretation Custody - Outside custody of the actual routing reply or ordered child attempts. Native causes remain runtime retirement facts, not this normal typed product.
- Creation
Kind - Behavior-owned provenance for a staged fresh actor creation request.
- Creation
Rejection - Complete semantic rejection of one staged fresh creation.
- Creation
Settlement - Final settlement of the creation leg of one
Actionsvalue. - Established
Creation - Committed or rejected result for one exact concrete child occurrence.
- Event
Layer - One statically owned input lane composed in front of an inner event algebra.
- Exact
Delivery Reason - Exact reason one established delivery was not accepted.
- Interpretation
- Completion state of one total static product traversal.
- Interpretation
Progress - Caller-owned cold input, partial normal interpretation, or acquired result.
- Interpreter
Fault - A broken interpreter invariant, distinct from expected capability rejection.
- Item
Settlement - Total settlement of one statically selected action item.
- Logical
Delivery Reason - One pure communication addressed to a concrete protocol signature.
- 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.
- Parent
Report Reason - Exact reason one structural parent report was not accepted.
- Settled
Item - Product-owned evidence that an action item was attempted or left untouched.
- Settlement
Status - Read-only control-flow status of one complete retained settlement product.
- Source
Custody - Result of offering at most one ordered source settlement.
- Source
Progress - Static one-at-a-time source admission for one complete settlement product. The actual source product before offering, its outside partial owner, or its acquired complete normal result. Native causes remain runtime-owned.
- Step
- A generic next-state verdict. Bombay Behavior pins
RtoStopped, so actor-specific lifecycle data cannot enter thebecomeseat.
Traits§
- Action
Item - One concrete value that can occur in
crate::Actions. - Action
Settlements - Static complete-settlement product selected by one concrete action type.
- Address
- A pure logical 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.
- Behavior
Layer - Static construction from one concrete behavior to another.
- Behavior
Settlements - One exact action-settlement product selected by a concrete behavior.
- Birth
Mode - A type-level description of a behavior’s creation capability.
- Birth
Node Append - Append one closed direct-child algebra after another.
- Birth
Protocol At - Static membership evidence for one occurrence in a birth-protocol product.
- Birth
Protocol Product - Closed product operation used by the structural birth projection.
- Birth
Protocols - Closed static projection of a behavior’s own protocol and every protocol reachable through its transitive staged-birth algebra.
- Child
Input Ingress - Construction of one private input sent by an established parent to its concrete direct child.
- Child
Occurrence - Declares how one effect occurrence is resolved from an authored parent.
- Child
Occurrence Product - Sealed occurrence product of a closed direct-child birth node.
- Child
Occurrence Shape - Downstream shape of one direct-child occurrence product.
- 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. - Classify
Settlement - Lossless status projection over an exact retained settlement value.
- Composed
Event - A complete event algebra formed by adding owned inputs around an inner behavior event algebra.
- Creation
Settlements - Static creation-settlement product selected by one birth mode.
- Dispatch
Birth - Exhaustive static dispatch of one creation-only child sum.
- Endpoint
Address - Runtime-owned installed actor family for an address namespace.
- Establish
Child - Runtime ownership port for establishing one concrete child behavior.
- Event
Ingress - Owner-selected event ingress for one statically identified source.
- Inject
Event - Path-indexed injection into a structural event coproduct.
- Interpret
Creations - Generic interpretation of the one creation leg selected by a birth mode.
- Interpret
Established - Public power-user transfer boundary for one exact endpoint.
- Interpret
Installed Actor - Public power-user transfer boundary for one exact installed actor.
- Interpret
Item - Concrete interpreter ownership port for one exact typed action item.
- 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.
LogicalProtocolslists possible logical destinations of the request in declaration order, independently of any value’s selected variant; exact and creator-local destinations contribute none. - Logical
Delivery Protocols - Static projection of intentional logical destinations from one concrete sends product.
- Logical
Host Requirements - Complete static logical-host requirement of one composed behavior.
- Protocol
- The statically known address and message signature of an actor protocol.
- Recipient
Address - Runtime-owned exact message endpoint family for one logical address namespace.
- Recover
Event - Exact recovery of one statically selected input from a returned event.
- Resolve
Child Occurrence - Resolve an effect’s nominal or structural occurrence against the concrete behavior currently being interpreted.
- Send
Effects - Send effects emitted by a pure actor transition.
- Send
Input - Static evidence that a sends type contains one request lane.
- Send
Settlements - Static settlement product determined solely by one concrete sends value.
- Sends
For - Proof that send effects are lawful for one complete event type.
- Source
Action - One action whose exact interpretation result returns to its live source.
- Source
Admission - Bombay ownership port for one exact current-actor system input.
- Source
Settlement Custody - User
Event - Construction/extraction of the user lane through a composed event type.
Functions§
- delegate_
transition - Fold one event through an inner behavior owned by a semantic wrapper.
- finish_
item - Finalize only an acquired reply after its original input was consumed. Surviving input with a reply, or absent input without a reply, stays owned.
- initialize
- Initialize an inner behavior owned by a semantic composition.
- prepare_
item - Prepare an ordinary request and its independent outside reply destination. Construction calls no interpreter and transfers no containing sibling.
- settle_
item - Loan only the current lower input and its outside reply destination. The producer returns unit; the caller finalizes after producer disposal. Empty input or an occupied destination remains an incomplete owned fact.
Type Aliases§
- Acted
- Action
Item Result - Exact result of one action item within an interpreted action product.
- 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.
- Child
Occurrences - Occurrence-preserving representation selected by one downstream shape.
- Resolved
Child - Child behavior resolved from
Occurrencefor the runningEmitter. - Resolved
Child Position - Structural birth position resolved from
Occurrencefor the runningEmitter. - Role
Child - Child behavior selected by one named role.
- Role
Protocol - Canonical protocol selected by one named role.
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.