Trait DuplicateTraceConfig

Source
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.

Required Methods§

Source

fn into_model(self: Box<Self>) -> Box<dyn DuplicateTrace>

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn DuplicateTraceConfig + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DuplicateTraceConfig + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DuplicateTraceConfig + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn DuplicateTraceConfig + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§