pub trait UdpReceiveBindingsContext<I, D>: UdpBindingsTypeswhere
I: IpExt,
D: StrongDeviceIdentifier,{
// Required method
fn receive_udp<B>(
&mut self,
id: &UdpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
device_id: &D,
meta: UdpPacketMeta<I>,
body: &B,
)
where B: BufferMut;
}
Expand description
The bindings context handling received UDP frames.
Required Methods§
Sourcefn receive_udp<B>(
&mut self,
id: &UdpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
device_id: &D,
meta: UdpPacketMeta<I>,
body: &B,
)where
B: BufferMut,
fn receive_udp<B>(
&mut self,
id: &UdpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
device_id: &D,
meta: UdpPacketMeta<I>,
body: &B,
)where
B: BufferMut,
Receives a UDP packet on a socket.
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.