Struct nrf_modem::OwnedUdpSendSocket
source · pub struct OwnedUdpSendSocket { /* private fields */ }
Expand description
An owned send half of a udp socket
Implementations§
source§impl OwnedUdpSendSocket
impl OwnedUdpSendSocket
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
sourcepub async fn deactivate(self) -> Result<(), Error>
pub async fn deactivate(self) -> Result<(), Error>
Deactivates the socket and the LTE link. A normal drop will do the same thing, but blocking.
Auto Trait Implementations§
impl Freeze for OwnedUdpSendSocket
impl RefUnwindSafe for OwnedUdpSendSocket
impl Send for OwnedUdpSendSocket
impl Sync for OwnedUdpSendSocket
impl Unpin for OwnedUdpSendSocket
impl UnwindSafe for OwnedUdpSendSocket
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