Skip to main content

Crate pure_stage

Crate pure_stage 

Source

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 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§

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.
Resources
A collection of resources that can be accessed by external effects.
ScheduleId
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).
ScheduleIds
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.
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.
ExternalEffect
A trait for effects that are not part of the StageGraph.
ExternalEffectAPI
Separate trait for fixing the response type of an external effect.
ExternalEffectSync
Marker trait for external effects that have a synchronous response.
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.
StageGraphRunning
A trait for running stage graphs.
TryInStage
An extension trait that allows termination or early return within a stage.

Functions§

err
stage_name
Generate a unique name for a stage.
warn

Type Aliases§

BoxFuture