@@ -17,7 +17,7 @@ use compio_buf::BufResult;
1717use compio_log:: { instrument, trace} ;
1818use slab:: Slab ;
1919use windows_sys:: Win32 :: {
20- Foundation :: { ERROR_BUSY , ERROR_OPERATION_ABORTED , HANDLE } ,
20+ Foundation :: { ERROR_BUSY , ERROR_OPERATION_ABORTED } ,
2121 Networking :: WinSock :: { WSACleanup , WSAStartup , WSADATA } ,
2222 System :: IO :: OVERLAPPED ,
2323} ;
@@ -294,7 +294,7 @@ pub struct Overlapped<T: ?Sized> {
294294 /// The base [`OVERLAPPED`].
295295 pub base : OVERLAPPED ,
296296 /// The unique ID of created driver.
297- pub driver : HANDLE ,
297+ pub driver : RawFd ,
298298 /// The registered user defined data.
299299 pub user_data : usize ,
300300 /// The opcode.
@@ -303,7 +303,7 @@ pub struct Overlapped<T: ?Sized> {
303303}
304304
305305impl < T > Overlapped < T > {
306- pub ( crate ) fn new ( driver : HANDLE , user_data : usize , op : T ) -> Self {
306+ pub ( crate ) fn new ( driver : RawFd , user_data : usize , op : T ) -> Self {
307307 Self {
308308 base : unsafe { std:: mem:: zeroed ( ) } ,
309309 driver,
@@ -326,7 +326,7 @@ pub(crate) struct RawOp {
326326}
327327
328328impl RawOp {
329- pub ( crate ) fn new ( driver : HANDLE , user_data : usize , op : impl OpCode + ' static ) -> Self {
329+ pub ( crate ) fn new ( driver : RawFd , user_data : usize , op : impl OpCode + ' static ) -> Self {
330330 let op = Overlapped :: new ( driver, user_data, op) ;
331331 let op = Box :: new ( op) as Box < Overlapped < dyn OpCode > > ;
332332 Self {
0 commit comments