pub struct PathMtuDiscoveryConfig { /* private fields */ }Expand description
Settings of the path MTU discovery (RFC 8899 sections 5.1.1 and 5.1.2), in SCTP packet bytes (common header and chunks).
Implementations§
Source§impl PathMtuDiscoveryConfig
impl PathMtuDiscoveryConfig
Sourcepub fn with_max_path_mtu(self, value: u32) -> Self
pub fn with_max_path_mtu(self, value: u32) -> Self
MAX_PLPMTU: the largest SCTP packet the search tries (the local interface MTU less what lies under SCTP).
Sourcepub fn max_path_mtu(&self) -> u32
pub fn max_path_mtu(&self) -> u32
MAX_PLPMTU, see with_max_path_mtu.
Sourcepub fn with_min_path_mtu(self, value: u32) -> Self
pub fn with_min_path_mtu(self, value: u32) -> Self
MIN_PLPMTU: the PLPMTU used while BASE_PLPMTU is not confirmed (the ERROR state). Raised to the smallest packet that carries DATA.
Sourcepub fn min_path_mtu(&self) -> u32
pub fn min_path_mtu(&self) -> u32
MIN_PLPMTU, see with_min_path_mtu.
Sourcepub fn with_probe_timeout(self, value: Duration) -> Self
pub fn with_probe_timeout(self, value: Duration) -> Self
PROBE_TIMER: how long a probe waits for its acknowledgement. Raised to 1 s (RFC 8899 section 5.1.1: it “MUST NOT be smaller than 1 second”).
Sourcepub fn probe_timeout(&self) -> Duration
pub fn probe_timeout(&self) -> Duration
PROBE_TIMER, see with_probe_timeout.
Sourcepub fn with_raise_interval(self, value: Duration) -> Self
pub fn with_raise_interval(self, value: Duration) -> Self
PMTU_RAISE_TIMER: how long a completed search is trusted before the next one.
Sourcepub fn raise_interval(&self) -> Duration
pub fn raise_interval(&self) -> Duration
PMTU_RAISE_TIMER, see with_raise_interval.
Sourcepub fn with_max_probes(self, value: u32) -> Self
pub fn with_max_probes(self, value: u32) -> Self
MAX_PROBES: unacknowledged probes in a row, of any size, after which a phase ends. At least 1.
Sourcepub fn max_probes(&self) -> u32
pub fn max_probes(&self) -> u32
MAX_PROBES, see with_max_probes.
Trait Implementations§
Source§impl Clone for PathMtuDiscoveryConfig
impl Clone for PathMtuDiscoveryConfig
impl Copy for PathMtuDiscoveryConfig
Source§impl Debug for PathMtuDiscoveryConfig
impl Debug for PathMtuDiscoveryConfig
Source§impl Default for PathMtuDiscoveryConfig
impl Default for PathMtuDiscoveryConfig
Source§fn default() -> Self
fn default() -> Self
MAX_PLPMTU 1452 (a 1500-byte IPv6 packet less the IPv6 and UDP headers; over DTLS the
record overhead comes off too, and a transport that knows it says so with
with_max_path_mtu); MIN_PLPMTU the smallest packet that
carries DATA; PROBE_TIMER 16 s (section 5.1.1: at least 1 s, and it “SHOULD be larger
than 15 seconds”); PMTU_RAISE_TIMER 600 s; MAX_PROBES 3.