-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add UdpSocket::peek
method
#7068
Conversation
Thanks for the PR! Currently, this method is based on the mio method; I see the docs are taken from there. However, we generally try to follow the methods in std instead. I notice that std has both Based on the above, I think we should have the following methods:
For inspiration, please see the |
The document is copied from the |
Sorry, my first response was inaccurate. What you have now looks very reasonable. Can you add |
Yes, add it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The
mio::net::UdpSocket
supportspeek
already, buttokio::net::UdpSocket
is missing this method.