1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! 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.

#[cfg(feature = "bw-model")]
pub mod bw;

#[cfg(feature = "bw-model")]
pub use bw::{BoundedNormalizedBw, FixedBw, NormalizedBw, RepeatedBwPattern};
#[cfg(feature = "bw-model")]
pub use bw::{
    BoundedNormalizedBwConfig, BwTraceConfig, FixedBwConfig, NormalizedBwConfig,
    RepeatedBwPatternConfig,
};