Skip to main content

mtu_floor

Function mtu_floor 

Source
fn mtu_floor(
    field: &'static str,
    value: u16,
) -> Result<(), TransportProfileError>
Expand description

Refuse an MTU quinn would silently raise.

Shared by both MTU fields so the floor is written once; the field name is passed in because the error has to say which one.