Trait netstack3_ip::PmtuContext
source · pub trait PmtuContext<I: Ip, BT: PmtuBindingsTypes> {
// Required method
fn with_state_mut<O, F: FnOnce(&mut PmtuCache<I, BT>) -> O>(
&mut self,
cb: F,
) -> O;
}
Expand description
The core context for the path MTU cache.
Required Methods§
sourcefn with_state_mut<O, F: FnOnce(&mut PmtuCache<I, BT>) -> O>(
&mut self,
cb: F,
) -> O
fn with_state_mut<O, F: FnOnce(&mut PmtuCache<I, BT>) -> O>( &mut self, cb: F, ) -> O
Calls a function with a mutable reference to the PMTU cache.
Object Safety§
This trait is not object safe.