From 3dfedfa4d9dd3049a574056f5615a3f5aae9ddb2 Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Thu, 26 Oct 2023 23:09:05 -0700 Subject: [PATCH] Async --- src/unix.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unix.rs b/src/unix.rs index 88a3dfff..4447a219 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -2,12 +2,11 @@ use std::{ffi::CStr, io, mem::zeroed, thread::yield_now}; +use io_trait::{OperationResult, AsyncOperation}; use libc::{ aio_cancel, aio_error, aio_read, aio_return, aio_write, aiocb, close, open, AIO_NOTCANCELED, }; -use crate::async_io::{AsyncFile, AsyncIo, AsyncOperation, OperationResult}; - pub struct File(i32); impl Drop for File {