Skip to content
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

net: add more impls for ToSocketAddrs #1760

Merged
merged 2 commits into from
Nov 16, 2019
Merged

net: add more impls for ToSocketAddrs #1760

merged 2 commits into from
Nov 16, 2019

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Nov 10, 2019

adding impls the same as std.

@@ -58,17 +84,33 @@ impl sealed::ToSocketAddrsPriv for str {
}
}

// ===== impl &'a [SocketAddr] =====

impl<'a> ToSocketAddrs for &'a [SocketAddr] where ReadyFuture<Self::Iter>: 'a {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... this impl got E0275 error. (If I remove where clause, I got E0495 error.) So remove this impl for now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taiki-e is there any intent towards adding back impl &'a [SocketAddr]? I was hoping to use it when attempting to bind on one of many SocketAddr. For now, I'm having to loop through each address manually, unless there's an alternative that I didn't see before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chipsenkbeil: Filed #2604 for this. Sorry for the delayed response.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@carllerche carllerche merged commit 92eb635 into tokio-rs:master Nov 16, 2019
@taiki-e taiki-e deleted the net-addr branch November 16, 2019 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants