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§
Sourcefn with_state_mut<O, F: FnOnce(&mut IpPacketFragmentCache<I, BT>) -> O>(
&mut self,
cb: F,
) -> O
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.