Re-exports§
pub use serde::DeserializerGuard;pub use serde::DeserializerGuards;pub use serde::serialize_external_effect::register_effect_deserializer;pub use serde::serialize_send_data::register_data_deserializer;pub use stage_ref::StageBuildRef;pub use stage_ref::StageRef;pub use typetag;
Modules§
- drop_
guard - serde
- This module contains some serialization and deserialization code for the Pure Stage library.
- simulation
- stage_
ref - tokio
- This module contains the Tokio-based
StageGraphimplementation, to be used in production. - trace_
buffer - This module contains the
TraceBuffertype, which is used to record the trace of a simulation.
Structs§
- 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.
- Output
Effect - An effect that sends a message to an output channel.
- Receiver
- The message receptacle used by
StageGraph::output. - Resources
- A collection of resources that can be accessed by external effects.
- Schedule
Id - A time specifying when an effect should be executed. The identifier (u64) specifies the precise effect to execute at that time in a map of scheduled effects maintained by the runtime (whether simulation or tokio).
- Schedule
Ids - Sender
- A handle for sending messages to a stage from outside the simulation.
- Unknown
External Effect - Generic deserialization result of external effects.
Enums§
- Effect
- An effect emitted by a stage.
- Stage
Response - The response a stage receives from the execution of an effect.
- Void
Statics§
- BLACKHOLE_
NAME - 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.
- External
Effect - A trait for effects that are not part of the StageGraph.
- External
EffectAPI - Separate trait for fixing the response type of an external effect.
- External
Effect Sync - Marker trait for external effects that have a synchronous response.
- Send
Data - Type constraint for messages, which must be self-contained and have a
Debuginstance. - Stage
Graph - A factory for processing network stages and their wiring.
- Stage
Graph Running - A trait for running stage graphs.
- TryIn
Stage - An extension trait that allows termination or early return within a stage.
Functions§
- err
- stage_
name - Generate a unique name for a stage.
- warn