diff options
Diffstat (limited to 'embassy-net')
| -rw-r--r-- | embassy-net/src/udp.rs | 4 |
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> |
