pub trait DuplicateTraceConfig:
DynClone
+ Send
+ Serialize
+ Deserialize {
// Required method
fn into_model(self: Box<Self>) -> Box<dyn DuplicateTrace>;
}
Expand description
This trait is used to convert a duplicate trace configuration into a duplicate trace model.
Since trace model is often configured with files and often has inner states which is not suitable to be seialized/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.