don't mention Poll::Ready for async fns as it's implied

This commit is contained in:
Easyoakland 2025-01-26 16:55:52 -07:00
parent cbbc1f1a2f
commit 89e25c7b14

View File

@ -226,7 +226,7 @@ impl<'a> UdpSocket<'a> {
/// ///
/// This method will wait until the datagram has been sent. /// This method will wait until the datagram has been sent.
/// ///
/// If the socket's send buffer is too small to fit `buf`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` /// If the socket's send buffer is too small to fit `buf`, this method will return `Err(SendError::PacketTooLarge)`
/// ///
/// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError> pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError>
@ -280,7 +280,7 @@ impl<'a> UdpSocket<'a> {
/// This method will wait until the buffer can fit the requested size before /// This method will wait until the buffer can fit the requested size before
/// calling the function to fill its contents. /// calling the function to fill its contents.
/// ///
/// If the socket's send buffer is too small to fit `size`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` /// If the socket's send buffer is too small to fit `size`, this method will return `Err(SendError::PacketTooLarge)`
/// ///
/// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
pub async fn send_to_with<T, F, R>(&mut self, size: usize, remote_endpoint: T, f: F) -> Result<R, SendError> pub async fn send_to_with<T, F, R>(&mut self, size: usize, remote_endpoint: T, f: F) -> Result<R, SendError>