pub struct Link {
pub delay: Duration,
pub jitter: Duration,
pub loss_ppm: u32,
pub duplicate_ppm: u32,
pub reorder_ppm: u32,
pub reorder_delay: Duration,
pub bandwidth: Option<u64>,
pub queue: usize,
pub mtu: usize,
}Expand description
Link behaviour, per direction. Probabilities are in parts per million.
Fields§
§delay: Duration§jitter: Duration§loss_ppm: u32§duplicate_ppm: u32§reorder_ppm: u32Reordered datagrams get an extra delay of up to reorder_delay.
reorder_delay: Duration§bandwidth: Option<u64>Bytes per second; None is unlimited.
queue: usizeBottleneck queue in bytes (tail drop).
mtu: usizeDatagrams larger than this are dropped (path MTU).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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