execution_event_family.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_event_family.bend as Execution_event_family
2 imports
import Base import ./owned_event_log.bend as Log
Types
type Family source · line 4 · raw
@-S:Data -> @-P:Type -> @-key:String -> Type
Family@-S:Data -> @-P:Type -> @-key:String -> @identity:U32 -> @open:Bool -> @log:0x704c77730661eff4309838fc738ef615/owned_event_log.Log<P> -> @previous:List<&2, Nat> -> @current:List<&2, Nat> -> @nextReader:U32 -> @active:List<&2, U32> -> @droppedThrough:Nat -> Family<S, P, key>
type Reader source · line 6 · raw
@-S:Data -> @-P:Type -> @-key:String -> Type
Reader@-S:Data -> @-P:Type -> @-key:String -> @identity:U32 -> @id:U32 -> @cursor:Nat -> Reader<S, P, key>
type Creation source · line 8 · raw
@-S:Data -> @-P:Type -> @-key:String -> Type
Created@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> Creation<S, P, key>
CreationRefused@-S:Data -> @-P:Type -> @-key:String -> Creation<S, P, key>
type Start source · line 11 · raw
Data
RetainedStart
FutureStart
type Refusal source · line 14 · raw
Data
ClosedRefusal
ForeignLogRefusal
InactiveRefusal
ReaderLimitRefusal
MissingPayloadRefusal
type Publication source · line 20 · raw
@-P:Type -> Type
Published@-P:Type -> @id:Nat -> Publication<P>
PublicationRefused@-P:Type -> @payload:P -> Publication<P>
type Registration source · line 23 · raw
@-S:Data -> @-P:Type -> @-key:String -> Type
Registered@-S:Data -> @-P:Type -> @-key:String -> @reader:Reader<S, P, key> -> Registration<S, P, key>
RegistrationRefused@-S:Data -> @-P:Type -> @-key:String -> @reason:Refusal -> Registration<S, P, key>
type Reading source · line 26 · raw
@-S:Data -> @-P:Type -> @-key:String -> @V:Data -> Type
Item@-S:Data -> @-P:Type -> @-key:String -> @V:Data -> @reader:Reader<S, P, key> -> @id:Nat -> @value:V -> @missed:Nat -> Reading<S, P, key, V>
Empty@-S:Data -> @-P:Type -> @-key:String -> @V:Data -> @reader:Reader<S, P, key> -> @missed:Nat -> Reading<S, P, key, V>
ReadRefused@-S:Data -> @-P:Type -> @-key:String -> @V:Data -> @reader:Reader<S, P, key> -> @reason:Refusal -> Reading<S, P, key, V>
type Removal source · line 30 · raw
@-S:Data -> @-P:Type -> @-key:String -> Type
Removed@-S:Data -> @-P:Type -> @-key:String -> @reader:Reader<S, P, key> -> Removal<S, P, key>
RemovalRefused@-S:Data -> @-P:Type -> @-key:String -> @reader:Reader<S, P, key> -> @reason:Refusal -> Removal<S, P, key>
type Snapshot source · line 33 · raw
Data
Snapshot@identity:U32 -> @open:Bool -> @next:Nat -> @previous:List<&2, Nat> -> @current:List<&2, Nat> -> @nextReader:U32 -> @active:List<&2, U32> -> @droppedThrough:Nat -> Snapshot
Definitions
def has source · line 42 · raw
@+ids:List<&2, U32> -> @+wanted:U32 -> Bool
def without_selected source · line 46 · raw
@equal:Bool -> @id:U32 -> @rest:List<&2, U32> -> List<&2, U32>
def without source · line 50 · raw
@ids:List<&2, U32> -> @+wanted:U32 -> List<&2, U32>
def starting source · line 64 · raw
@start:Start -> @next:Nat -> Nat
def admission_identity source · line 76 · raw
@same:Bool -> @active:Bool -> Maybe<&2, Refusal>
def admission source · line 81 · raw
@open:Bool -> @identity:U32 -> @actual:U32 -> @id:U32 -> @active:List<&2, U32> -> Maybe<&2, Refusal>
def highest source · line 92 · raw
@ids:List<&2, Nat> -> @+initial:Nat -> Nat
Templates
template created source · line 36 · raw
@-S:Data -> @-P:Type -> @-key:String -> @+identity:U32 -> @valid:Bool -> Creation<S, P, key>
template allocated source · line 40 · raw
@-S:Data -> @-P:Type -> @-key:String -> @+identity:U32 -> Creation<S, P, key>
template published source · line 54 · raw
@-S:Data -> @-P:Type -> @-key:String -> @identity:U32 -> @previous:List<&2, Nat> -> @current:List<&2, Nat> -> @nextReader:U32 -> @active:List<&2, U32> -> @dropped:Nat -> @result:Pair(0x704c77730661eff4309838fc738ef615/owned_event_log.Log<P>, Nat) -> Pair(Family<S, P, key>, Publication<P>)
template publish source · line 60 · raw
@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> @payload:P -> Pair(Family<S, P, key>, Publication<P>)
Publication updates the owned log immediately, as Bevy Messages.write does. https://github.com/bevyengine/bevy/blob/ad678262ce53b5d142fe49ee5e08caff6f00ab60/crates/bevy_ecs/src/message/messages.rs#L120-L143 A later handled body error does not stage or undo this already-authored send.
template register_checked source · line 68 · raw
@-S:Data -> @-P:Type -> @-key:String -> @start:Start -> @available:Bool -> @family:Family<S, P, key> -> Pair(Family<S, P, key>, Registration<S, P, key>)
template register source · line 72 · raw
@-S:Data -> @-P:Type -> @-key:String -> @start:Start -> @family:Family<S, P, key> -> Pair(Family<S, P, key>, Registration<S, P, key>)
template remove_admitted source · line 85 · raw
@-S:Data -> @-P:Type -> @-key:String -> @refusal:Maybe<&2, Refusal> -> @family:Family<S, P, key> -> @reader:Reader<S, P, key> -> Pair(Family<S, P, key>, Removal<S, P, key>)
template remove source · line 89 · raw
@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> @reader:Reader<S, P, key> -> Pair(Family<S, P, key>, Removal<S, P, key>)
template updated source · line 96 · raw
@-S:Data -> @-P:Type -> @-key:String -> @identity:U32 -> @current:List<&2, Nat> -> @nextReader:U32 -> @active:List<&2, U32> -> @dropped:Nat -> @result:Pair(0x704c77730661eff4309838fc738ef615/owned_event_log.Log<P>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>) -> Pair(Family<S, P, key>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>)
template update source · line 102 · raw
@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> Pair(Family<S, P, key>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>)
Messages.update_drain returns the previous generation's actual payload owners. https://github.com/bevyengine/bevy/blob/ad678262ce53b5d142fe49ee5e08caff6f00ab60/crates/bevy_ecs/src/message/messages.rs#L187-L218 Bend returns retained rows explicitly instead of claiming an automatic IO finalizer.
template shutdown_returned source · line 106 · raw
@-S:Data -> @-P:Type -> @-key:String -> @identity:U32 -> @nextReader:U32 -> @dropped:Nat -> @result:Pair(0x704c77730661eff4309838fc738ef615/owned_event_log.Log<P>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>) -> Pair(Family<S, P, key>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>)
template shutdown source · line 109 · raw
@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> Pair(Family<S, P, key>, List<&1, 0x704c77730661eff4309838fc738ef615/owned_event_log.Row<P>>)
template snapshot source · line 112 · raw
@-S:Data -> @-P:Type -> @-key:String -> @family:Family<S, P, key> -> Pair(Family<S, P, key>, Snapshot)