Skip to content

Commit a9af894

Browse files
committed
fix(driver,iocp): readd AsRawFd impl
1 parent b039ac5 commit a9af894

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compio-driver/src/iocp/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ impl Driver {
262262
}
263263
}
264264

265+
impl AsRawFd for Driver {
266+
fn as_raw_fd(&self) -> RawFd {
267+
self.port.as_raw_handle()
268+
}
269+
}
270+
265271
impl Drop for Driver {
266272
fn drop(&mut self) {
267273
syscall!(SOCKET, WSACleanup()).ok();

0 commit comments

Comments
 (0)