Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

How to allow use of IntoSocketAddrs with UDP types #4

Open
Nemo157 opened this issue Aug 23, 2019 · 0 comments
Open

How to allow use of IntoSocketAddrs with UDP types #4

Nemo157 opened this issue Aug 23, 2019 · 0 comments

Comments

@Nemo157
Copy link
Member

Nemo157 commented Aug 23, 2019

Part of my thoughts with rustasync/runtime#101 and #3 was that runtime::net::UdpSocket::send_to could be deprecated and replaced with async_datagram::AsyncDatagramExt::send_to (or become an inherent method that just forwards to the trait method).

Unfortunately that would lose out on being able to use impl IntoSocketAddrs for the destination address. Is there some way a change to the AsyncDatagram trait, the extension trait, and/or the implementation for runtime::net::UdpSocket could allow using this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant