pub trait IcmpSendContext<I, BC>: IpSocketHandler<I, BC>where
I: IpLayerIpExt,
BC: IcmpBindingsTypes,{
// Required method
fn with_error_send_bucket_mut<O, F: FnOnce(&mut TokenBucket<BC::Instant>) -> O>(
&mut self,
cb: F,
) -> O;
}Expand description
Context for sending ICMP messages.
Required Methods§
Sourcefn with_error_send_bucket_mut<O, F: FnOnce(&mut TokenBucket<BC::Instant>) -> O>(
&mut self,
cb: F,
) -> O
fn with_error_send_bucket_mut<O, F: FnOnce(&mut TokenBucket<BC::Instant>) -> O>( &mut self, cb: F, ) -> O
Calls the function with a mutable reference to ICMP error send tocket bucket.
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.