pub trait UdpReceiveBindingsContext<I: IpExt, D: StrongId>: UdpBindingsTypes {
    // Required method
    fn receive_udp<B: BufferMut>(
        &mut self,
        id: &UdpSocketId<I, D::Weak, Self>,
        device_id: &D,
        dst_addr: (I::Addr, NonZeroU16),
        src_addr: (I::Addr, Option<NonZeroU16>),
        body: &B
    );
}
Expand description

The bindings context handling received UDP frames.

Required Methods§

source

fn receive_udp<B: BufferMut>( &mut self, id: &UdpSocketId<I, D::Weak, Self>, device_id: &D, dst_addr: (I::Addr, NonZeroU16), src_addr: (I::Addr, Option<NonZeroU16>), body: &B )

Receives a UDP packet on a socket.

Object Safety§

This trait is not object safe.

Implementors§