pub trait UdpFullStack: UdpClientStack {
    type BindFuture<'m>: Future<Output = Result<(), Self::Error>> + 'm
    where
        Self: 'm
; type SendToFuture<'m>: Future<Output = Result<(), Self::Error>> + 'm
    where
        Self: 'm
; fn bind<'m>(
        &'m mut self,
        socket: &'m mut Self::UdpSocket,
        local_port: u16
    ) -> Self::BindFuture<'m>; fn send_to<'m>(
        &'m mut self,
        socket: &'m mut Self::UdpSocket,
        remote: SocketAddr,
        buffer: &'m [u8]
    ) -> Self::SendToFuture<'m>; }
Expand description

This trait is implemented by UDP/IP stacks. It provides the ability to listen for packets on a specified port and send replies.

Required Associated Types

Future returned by bind function.

Future returned by send_to function.

Required Methods

Bind a UDP socket with a specified port

Send a packet to a remote host/port.

Implementations on Foreign Types

Implementors