Crate boomerang_runtime

Source
Expand description

§Boomerang Runtime

crates.io MIT/Apache 2.0 Downloads CI docs codecov

Runtime types and discrete event executor for Boomerang.

This crate is not intended to be used by itself, but rather through the top-level boomerang crate.

§Feature flags

  • parallel — Support for parallel execution
  • serde — Support for serialization

Modules§

fmt_utils
Utility functions for formatting until debug_closure_helpers lands in stable.
keepalive
A simple channel for signalling a shutdown event to threads.

Structs§

ActionKey
ActionRef
An ActionRef is a reference to an Action that can be scheduled.
BankInfo
Bank information for a multi-bank reactor
Context
Scheduler context passed into reactor functions.
Deadline
Duration
A Duration type to represent a span of time, typically used for system timeouts.
Env
Env stores the resolved runtime state of all the reactors.
InputRef
A reference to an input port.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
Level
Execution level
LogicalAction
Typed Action state, storing potentially different values at different Tags.
LogicalTime
OutputRef
A reference to an output port.
PhysicalAction
PhysicalActionRef
Port
PortKey
Reaction
ReactionGraph
Invariant data for the runtime, describing the resolved reaction graph and it’s dependencies.
ReactionKey
ReactionSetLimits
Reactor
ReactorKey
Scheduler
SendContext
SendContext can be shared across threads and allows asynchronous events to be scheduled.
Tag

Enums§

Action
RuntimeError

Traits§

ActionData
ActionRefValue
BasePort
Partition
PartitionMut
PortData
ReactorState

Functions§

build_reaction_contexts
Build contexts for each reaction
partition
Wrapper function for dynamic destructuring.
partition_mut
Wrapper function for dynamic destructuring with mutable references.

Type Aliases§

ActionSliceMut
HandlerFn
LevelReactionKey
A paired ReactionKey with it’s execution Level.
PortRef
PortRef is the type-erased ref argument passed to the ReactionFn
PortRefMut
PortRefMut is the mutable type-erased ref argument passed to the ReactionFn
PortSlice
PortSliceMut
ReactionFn
ReactionSet