pub enum MtuDiscovery {
Off,
UpTo(u16),
}Expand description
Whether to search for a larger path MTU, and how far.
quinn’s default is to search, so an unset
TransportProfile::mtu_discovery means discovery stays on.
MtuDiscovery::Off is the only way to say otherwise, and it has to be
expressible separately from unset: turning discovery off is a real choice
for a run that wants the packet size it configured to be the packet size
it gets, rather than the start of a binary search.
Variants§
Off
Do not search. The packet size stays where initial_mtu put it.
UpTo(u16)
Search, but no higher than this many bytes.
Everything else about the search — interval, minimum change, black-hole cooldown — stays at quinn’s defaults.
Implementations§
Trait Implementations§
Source§impl Clone for MtuDiscovery
impl Clone for MtuDiscovery
Source§fn clone(&self) -> MtuDiscovery
fn clone(&self) -> MtuDiscovery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MtuDiscovery
Source§impl Debug for MtuDiscovery
impl Debug for MtuDiscovery
impl Eq for MtuDiscovery
Source§impl PartialEq for MtuDiscovery
impl PartialEq for MtuDiscovery
impl StructuralPartialEq for MtuDiscovery
Auto Trait Implementations§
impl Freeze for MtuDiscovery
impl RefUnwindSafe for MtuDiscovery
impl Send for MtuDiscovery
impl Sync for MtuDiscovery
impl Unpin for MtuDiscovery
impl UnsafeUnpin for MtuDiscovery
impl UnwindSafe for MtuDiscovery
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