pub(crate) async fn send_udp_packet(
        &self,
        destination: SocketAddr,
        data: impl Into<Box<[u8]>>,
    ) {
        let _ = self
            .to_endpoint
            .lock()
            .await
            .send(ToEndpoint::SendUdpPacket {
                destination,
                data: data.into(),
            })
            .await;
    }
/// Asks the endpoint to send a UDP packet.
///
/// Note that this method only queues the packet and returns as soon as the packet is in queue.
/// There is no guarantee that the packet will actually be sent, but considering that this is
/// a UDP packet, you cannot rely on the packet being delivered anyway.
Asks the endpoint to send a UDP packet.
Note that this method only queues the packet and returns as soon as the packet is in queue.
There is no guarantee that the packet will actually be sent, but considering that this is
a UDP packet, you cannot rely on the packet being delivered anyway.
Asks the endpoint to send a UDP packet . Note that this method only queues the packet and returns as soon as the packet is in queue . There is no guarantee that the packet will actually be sent but considering that this is a UDP packet you cannot rely on the packet being delivered anyway .
pub(crate) async fn send_udp_packet(
        &self,
        destination: SocketAddr,
        data: impl Into<Box<[u8]>>,
    ) {
        let _ = self
            .to_endpoint
            .lock()
            .await
            .send(ToEndpoint::SendUdpPacket {
                destination,
                data: data.into(),
            })
            .await;
    }
pub ( crate ) async fn send_udp_packet ( & self , destination : SocketAddr , data : impl Into < Box < [ u8 ] > > , ) { let _ = self . to_endpoint . lock ( ) . await . send ( ToEndpoint :: SendUdpPacket { destination , data : data . into ( ) , } ) . await ; }
Asks the endpoint to send a UDP packet.
Asks the endpoint to send a UDP packet .
&self
destination
SocketAddr
data
impl Into<Box<[u8]>>
&self
destination
SocketAddr
data
impl Into<Box<[u8]>>