Crate pure_stage

Source

Re-exports§

pub use serde::Void;
pub use stage_ref::StageBuildRef;
pub use stage_ref::StageRef;
pub use typetag;

Modules§

serde
This module contains some serialization and deserialization code for the Pure Stage library.
simulation
This module contains the SimulationBuilder and SimulationRunning types, which are used to build and run a simulation.
stage_ref
tokio
This module contains the Tokio-based StageGraph implementation, to be used in production.
trace_buffer
This module contains the TraceBuffer type, which is used to record the trace of a simulation.

Structs§

CallId
A unique identifier for a call effect.
CallRef
The response channel for a call effect.
Effects
A handle for performing effects on the current stage.
Instant
A point in time in the simulation.
Name
A unique identifier for a stage in the simulation.
OutputEffect
An effect that sends a message to an output channel.
Receiver
The message receptacle used by StageGraph::output.
Sender
A handle for sending messages to a stage from outside the simulation.
UnknownExternalEffect
Generic deserialization result of external effects.

Enums§

Effect
An effect emitted by a stage.
StageResponse
The response a stage receives from the execution of an effect.

Statics§

EPOCH
The concrete value of the epoch is completely opaque and irrelevant, we only persist durations. The only guarantee needed is that the epoch stays constant for the duration of the simulation.

Traits§

Clock
A simulation clock that is driven explicitly by the simulation.
ExternalEffect
A trait for effects that are not part of the StageGraph.
ExternalEffectAPI
Separate trait for fixing the response type of an external effect.
SendData
Type constraint for messages, which must be self-contained and have a Debug instance.
StageGraph
A factory for processing network stages and their wiring.

Type Aliases§

BoxFuture