pub struct MtuConfig {
pub start_mtu: usize,
pub min_mtu: usize,
pub max_mtu: usize,
pub step: usize,
pub probe_timeout: Duration,
pub ipv6: bool,
pub extra_overhead: usize,
}Expand description
Configuration for MTU negotiation.
Fields§
§start_mtu: usizeStarting MTU to probe from (default: 1500).
min_mtu: usizeMinimum acceptable MTU (default: 576).
max_mtu: usizeMaximum MTU to probe (default: 1500).
step: usizeStep size for binary search (default: 8 bytes).
probe_timeout: DurationHow long to wait for a probe response before declaring loss.
ipv6: boolUse IPv6 (adds 40 bytes header instead of 20).
extra_overhead: usizeExtra overhead from other encapsulation layers (e.g. WireGuard inside VCL).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MtuConfig
impl RefUnwindSafe for MtuConfig
impl Send for MtuConfig
impl Sync for MtuConfig
impl Unpin for MtuConfig
impl UnsafeUnpin for MtuConfig
impl UnwindSafe for MtuConfig
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