Skip to main content

IcmpSendContext

Trait IcmpSendContext 

Source
pub trait IcmpSendContext<I, BC>: IpSocketHandler<I, BC>{
    // 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§

Source

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.

Implementors§