Add AsyncFd::try_io
#4719
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-io
Module: tokio/io
Is your feature request related to a problem? Please describe.
I have a Unix socket where I want to call
libc::sendmsg
on the file descriptor directly. Right now, I have to usewhich is error prone.
Describe the solution you'd like
It would be convenient to allow using try_io instead, like for UdpSocket:
Describe alternatives you've considered
Keep using
writable()
guard.Implement sendmsg APIs in tokio directly (#2975).
Additional context
https://discord.com/channels/500028886025895936/500336333500448798/979801318375964733
The text was updated successfully, but these errors were encountered: