Trait netstack3_ip::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.

Object Safety§

This trait is not object safe.

Implementors§