Function netsim::node::latency_v4 [] [src]

pub fn latency_v4<N>(
    min_latency: Duration,
    mean_additional_latency: Duration,
    node: N
) -> ImplNode<N> where
    N: Ipv4Node

Add latency between nodes. Packets entering the connection from either end will be delayed before arriving at the other end.

min_latency is the baseline for the amount of delay to add to packets. mean_additional_latency controls the amount of random variation in the delay added to packets. A non-zero mean_additional_latency can cause packets to be re-ordered.