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
Auto Trait Implementations§
impl<'a> Freeze for UdpSendSocket<'a>
impl<'a> RefUnwindSafe for UdpSendSocket<'a>
impl<'a> Send for UdpSendSocket<'a>
impl<'a> Sync for UdpSendSocket<'a>
impl<'a> Unpin for UdpSendSocket<'a>
impl<'a> UnwindSafe for UdpSendSocket<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more