netstack3_ip

Trait FragmentContext

Source
pub trait FragmentContext<I: Ip, BT: FragmentBindingsTypes> {
    // Required method
    fn with_state_mut<O, F: FnOnce(&mut IpPacketFragmentCache<I, BT>) -> O>(
        &mut self,
        cb: F,
    ) -> O;
}
Expand description

The state context for the fragment cache.

Required Methods§

Source

fn with_state_mut<O, F: FnOnce(&mut IpPacketFragmentCache<I, BT>) -> O>( &mut self, cb: F, ) -> O

Returns a mutable reference to the fragment 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.

Implementors§