Struct nrf_modem::UdpSendSocket
source · pub struct UdpSendSocket<'a> { /* private fields */ }Expand description
A borrowed send half of a udp socket
Implementations§
source§impl<'a> UdpSendSocket<'a>
impl<'a> UdpSendSocket<'a>
sourcepub async fn send_to(&self, buf: &[u8], addr: SocketAddr) -> Result<(), Error>
pub async fn send_to(&self, buf: &[u8], addr: SocketAddr) -> Result<(), Error>
Send the given buffer to the given address
sourcepub async fn send_to_with_cancellation(
&self,
buf: &[u8],
addr: SocketAddr,
token: &CancellationToken
) -> Result<(), Error>
pub async fn send_to_with_cancellation( &self, buf: &[u8], addr: SocketAddr, token: &CancellationToken ) -> Result<(), Error>
Send the given buffer to the given address