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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.