aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEasyoakland <[email protected]>2025-01-26 16:55:52 -0700
committerEasyoakland <[email protected]>2025-01-26 16:55:52 -0700
commit89e25c7b14f77ead6dd8d895d982aa684baf9874 (patch)
tree75162eea55e590c54cc547215033affc099411f0
parentcbbc1f1a2ffc5e943e5ed9bb0d6cfa723111f7d1 (diff)
don't mention Poll::Ready for async fns as it's implied
-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 7db9c5bbc..63c2f4c75 100644
--- a/embassy-net/src/udp.rs
+++ b/embassy-net/src/udp.rs
@@ -226,7 +226,7 @@ impl<'a> UdpSocket<'a> {
226 /// 226 ///
227 /// This method will wait until the datagram has been sent. 227 /// This method will wait until the datagram has been sent.
228 /// 228 ///
229 /// If the socket's send buffer is too small to fit `buf`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` 229 /// If the socket's send buffer is too small to fit `buf`, this method will return `Err(SendError::PacketTooLarge)`
230 /// 230 ///
231 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` 231 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
232 pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError> 232 pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError>
@@ -280,7 +280,7 @@ impl<'a> UdpSocket<'a> {
280 /// This method will wait until the buffer can fit the requested size before 280 /// This method will wait until the buffer can fit the requested size before
281 /// calling the function to fill its contents. 281 /// calling the function to fill its contents.
282 /// 282 ///
283 /// If the socket's send buffer is too small to fit `size`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` 283 /// If the socket's send buffer is too small to fit `size`, this method will return `Err(SendError::PacketTooLarge)`
284 /// 284 ///
285 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` 285 /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
286 pub async fn send_to_with<T, F, R>(&mut self, size: usize, remote_endpoint: T, f: F) -> Result<R, SendError> 286 pub async fn send_to_with<T, F, R>(&mut self, size: usize, remote_endpoint: T, f: F) -> Result<R, SendError>