Skip to main content

PathMtuDiscoveryConfig

Struct PathMtuDiscoveryConfig 

Source
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

Source

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).

Source

pub fn max_path_mtu(&self) -> u32

MAX_PLPMTU, see with_max_path_mtu.

Source

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.

Source

pub fn min_path_mtu(&self) -> u32

MIN_PLPMTU, see with_min_path_mtu.

Source

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”).

Source

pub fn probe_timeout(&self) -> Duration

PROBE_TIMER, see with_probe_timeout.

Source

pub fn with_raise_interval(self, value: Duration) -> Self

PMTU_RAISE_TIMER: how long a completed search is trusted before the next one.

Source

pub fn raise_interval(&self) -> Duration

PMTU_RAISE_TIMER, see with_raise_interval.

Source

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.

Source

pub fn max_probes(&self) -> u32

MAX_PROBES, see with_max_probes.

Trait Implementations§

Source§

impl Clone for PathMtuDiscoveryConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PathMtuDiscoveryConfig

Source§

impl Debug for PathMtuDiscoveryConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PathMtuDiscoveryConfig

Source§

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.

Source§

impl Eq for PathMtuDiscoveryConfig

Source§

impl PartialEq for PathMtuDiscoveryConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PathMtuDiscoveryConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.