Return the value with the lowest rtt in the `ring_buffer`
(&self)
| 99 | impl<T: TscRtt> RingBuffer<T> { |
| 100 | /// Return the value with the lowest rtt in the `ring_buffer` |
| 101 | pub fn min_rtt(&self) -> Option<&T> { |
| 102 | self.buffer.iter().min_by_key(|v| v.rtt()) |
| 103 | } |
| 104 | |
| 105 | /// Return the value with the lowest rtt in the specified quarter of the ring buffer. |
| 106 | /// |