-
Notifications
You must be signed in to change notification settings - Fork 341
Implement poll_read
and poll_write
for UdpSocket
#634
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
Comments
Would a high-quality PR implementing this be accepted? |
We don't really expose any Pin::new(&mut socket.read(buf)).poll(cx); |
Related PR: #636 |
It does not compile because the return value of |
Something like that should work: let mut fut = socket.read(buf);
futures::pin_mut!(fut);
fut.poll(cx) |
@tomaka thanks! |
Currently, it is difficult to use a
UdpSocket
in anAsyncWrite
implementation, as it does not expose any low-level methods that returnPoll
.The text was updated successfully, but these errors were encountered: