Closed
Description
Currently, most methods async_io::Async
requires the type it wraps to implement AsRawFd
, or AsRawSocket
on Windows.
The standard library now supports the safe alternative AsFd
(or AsSocket
on Windows), and async-io has some support for this. However, it doesn't seem possible to create an Async<T>
for a type that implements AsFd
but not AsRawFd
.
I have types I'd love to use Async
with, and I'd like to drop the implementation of AsRawFd
for those types. (This would also eliminate unsafe
code.)
Please consider adding a constructor for Async<T>
where T: AsFd
.
Metadata
Metadata
Assignees
Labels
No labels