pub fn new_constrained_connection( bandwidth_bits_per_second: u64, rtt: Duration, ) -> (Endpoint, Endpoint)
Create a new Endpoint pair.
Endpoint
bandwidth being the bandwidth in bits per second.
bandwidth
rtt being the round trip time.
rtt