We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c3939f commit 8decea5Copy full SHA for 8decea5
1 file changed
compio-driver/src/sys/iocp/mod.rs
@@ -228,6 +228,12 @@ impl AsFd for OwnedHandle {
228
}
229
230
231
+impl AsFd for BorrowedHandle<'_> {
232
+ fn as_fd(&self) -> BorrowedFd<'_> {
233
+ (*self).into()
234
+ }
235
+}
236
+
237
impl AsFd for socket2::Socket {
238
fn as_fd(&self) -> BorrowedFd<'_> {
239
self.as_socket().into()
@@ -240,6 +246,12 @@ impl AsFd for OwnedSocket {
240
246
241
247
242
248
249
+impl AsFd for BorrowedSocket<'_> {
250
251
252
253
254
243
255
impl AsFd for std::process::ChildStdin {
244
256
245
257
self.as_handle().into()
0 commit comments