Skip to main content

IcmpEchoBindingsContext

Trait IcmpEchoBindingsContext 

Source
pub trait IcmpEchoBindingsContext<I: IpExt, D: StrongDeviceIdentifier>:
    IcmpEchoBindingsTypes
    + ReferenceNotifiers
    + RngContext
    + SettingsContext<IcmpEchoSettings> {
    // Required method
    fn receive_icmp_echo_reply<B: BufferMut>(
        &mut self,
        conn: &IcmpSocketId<I, D::Weak, Self>,
        device_id: &D,
        src_ip: I::Addr,
        dst_ip: I::Addr,
        id: u16,
        data: B,
    ) -> Result<(), ReceiveIcmpEchoError>;
}
Expand description

The context required by the ICMP layer in order to deliver events related to ICMP sockets.

Required Methods§

Source

fn receive_icmp_echo_reply<B: BufferMut>( &mut self, conn: &IcmpSocketId<I, D::Weak, Self>, device_id: &D, src_ip: I::Addr, dst_ip: I::Addr, id: u16, data: B, ) -> Result<(), ReceiveIcmpEchoError>

Receives an ICMP echo reply.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§