Module netem_trace::model

source ·
Expand description

This module contains pre-defined models for BwTrace, DelayTrace and LossTrace.

A model has two parts: a configuration struct and a model struct. The configuration struct is used to configure the model and used for serialization/deserialization if serde feature is enabled. The model struct which implements trait BwTrace is used to generate the trace and maintain inner states.

Enable bw-model feature to use the BwTrace models.

Re-exports

pub use bw::BoundedNormalizedBw;
pub use bw::FixedBw;
pub use bw::NormalizedBw;
pub use bw::RepeatedBwPattern;
pub use bw::BwTraceConfig;
pub use bw::FixedBwConfig;
pub use bw::NormalizedBwConfig;

Modules

This module contains some predefined bandwidth trace models.