Trait IUdpChannel

Source
pub trait IUdpChannel: Send + Sync {
    // Required methods
    fn recv_send_to<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 mut [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(usize, Address)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn send_recv_from<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 [u8],
        addr: SocketAddr,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

The other side of an UdpSocket

Required Methods§

Source

fn recv_send_to<'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 mut [u8], ) -> Pin<Box<dyn Future<Output = Result<(usize, Address)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn send_recv_from<'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 [u8], addr: SocketAddr, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§