aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src
diff options
context:
space:
mode:
authorchrysn <[email protected]>2024-04-19 15:51:27 +0200
committerchrysn <[email protected]>2024-04-19 15:51:27 +0200
commit2c7c39d1db198447e52d7c9c5c6a39a71868c311 (patch)
tree756aa044fad795e3411cfca48983e1545455aa47 /embassy-net/src
parente6bf6c7a49fbcf16253343fb2fbc4bdb1693c908 (diff)
fixup! net/udp: Relay full UdpMetadata instead of only remote endpoint in poll_ functions
Diffstat (limited to 'embassy-net/src')
-rw-r--r--embassy-net/src/udp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-net/src/udp.rs b/embassy-net/src/udp.rs
index 3e72327c6..494a1bd71 100644
--- a/embassy-net/src/udp.rs
+++ b/embassy-net/src/udp.rs
@@ -145,9 +145,9 @@ impl<'a> UdpSocket<'a> {
145 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` 145 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
146 pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError> 146 pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError>
147 where 147 where
148 T: Into<IpEndpoint>, 148 T: Into<UdpMetadata>,
149 { 149 {
150 let remote_endpoint: IpEndpoint = remote_endpoint.into(); 150 let remote_endpoint: UdpMetadata = remote_endpoint.into();
151 poll_fn(move |cx| self.poll_send_to(buf, remote_endpoint, cx)).await 151 poll_fn(move |cx| self.poll_send_to(buf, remote_endpoint, cx)).await
152 } 152 }
153 153