pub trait DelayPerPacketTraceConfig:
DynClone
+ Send
+ Debug
+ Serialize
+ Deserialize {
// Required method
fn into_model(self: Box<Self>) -> Box<dyn DelayPerPacketTrace>;
}
Expand description
This trait is used to convert a per-packet delay trace configuration into a per-packet delay trace model.
Since trace model is often configured with files and often has inner states which is not suitable to be serialized/deserialized, this trait makes it possible to separate the configuration part into a simple struct for serialization/deserialization, and construct the model from the configuration.