-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for peer_addr
for UdpSocket
#977
Comments
If it moves to stable I think we can do this for 0.7. |
@MOZGIII You want to create a pr for this? |
Sure. I'd rather enable support for this even though the std part is in nightly. I'll also look into if it's possible to enable it automatically if the nightly Any advice? |
You could add an empty Next enable the feature when nightly is available: And finally add I think that should work. |
The master branch is targeting nightly atm. 0.7 will be released when At least the iovec types are stable. |
|
My personal preference is to avoid adding feature flags. If you need access to that function, you can always impl it yourself w/ an ext trait or a custom type. |
@carllerche How would I do that in this case? I'd be ok with actually having a custom way of calling this function that's implemented in my project - I just don't want to go through @Thomasdezeeuw I'm afraid that Btw, technically, my code might not even need to be aware of std's |
@Thomasdezeeuw I misunderstood what I'd rather explicitly add the |
We can only add nightly features on the master branch that are stabilized w/ a target target date for landing on stable. Anything else adds too much of a maintenance burden. |
Ok, makes sense. Maybe then it makes more sense to just wait a bit on the PR right now. |
Hey! Just an update: |
I saw, I'm ok with targeting 1.39 (in which |
1.39 sounds good to me! |
|
I'm pretty sure async / await is landing as part of 1.39. |
Fun fact: at my project we changed the networking logic and we don't need this API anymore. Not that it should't be there, but the adoption sure is slow. 😄 |
Blocked on #1381, it's much easier to add once we use socket2. |
Fixed by #1436. |
I'm trying to test-use the unstable rust feature from here: rust-lang/rust#59127
It would be great if this crate provided the
peer_addr
the same way the std socket does.It's ok if we hide it with the feature flag.
The text was updated successfully, but these errors were encountered: