mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
fixup! net/udp: Relay full UdpMetadata instead of only remote endpoint in poll_ functions
This commit is contained in:
parent
e6bf6c7a49
commit
2c7c39d1db
@ -145,9 +145,9 @@ impl<'a> UdpSocket<'a> {
|
||||
/// 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>
|
||||
where
|
||||
T: Into<IpEndpoint>,
|
||||
T: Into<UdpMetadata>,
|
||||
{
|
||||
let remote_endpoint: IpEndpoint = remote_endpoint.into();
|
||||
let remote_endpoint: UdpMetadata = remote_endpoint.into();
|
||||
poll_fn(move |cx| self.poll_send_to(buf, remote_endpoint, cx)).await
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user