Skip to main content

PmtuContext

Trait 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§

Source

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

Implementors§