struct Bdp {
bdp: u32,
max_bandwidth: f64,
rtt: f64,
ping_delay: Duration,
stable_count: u32,
}
Fields§
§bdp: u32
Current BDP in bytes
max_bandwidth: f64
Largest bandwidth we’ve seen so far.
rtt: f64
Round trip time in seconds
ping_delay: Duration
Delay the next ping by this amount.
This will change depending on how stable the current bandwidth is.
stable_count: u32
The count of ping round trips where BDP has stayed the same.
Implementations§
Auto Trait Implementations§
impl Freeze for Bdp
impl RefUnwindSafe for Bdp
impl Send for Bdp
impl Sync for Bdp
impl Unpin for Bdp
impl UnwindSafe for Bdp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more