DelayPerPacketTraceConfig

Trait DelayPerPacketTraceConfig 

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

Required Methods§

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn DelayPerPacketTraceConfig + '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 DelayPerPacketTraceConfig + 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 DelayPerPacketTraceConfig + 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 DelayPerPacketTraceConfig + 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§