fn run(self) {
        unsafe {
            let buf = slice::from_raw_parts_mut(self.ptr, self.data_size);
            let ret = self
                .fd
                .read(self.offset, buf)
                .map_err(|e| Error::Io(Box::new(e)));
            let _ = self.cb.send(ret);
        }
    }
// Do not call it self again
Do not call it self again
Do not call it self again
fn run(self) {
        unsafe {
            let buf = slice::from_raw_parts_mut(self.ptr, self.data_size);
            let ret = self
                .fd
                .read(self.offset, buf)
                .map_err(|e| Error::Io(Box::new(e)));
            let _ = self.cb.send(ret);
        }
    }
fn run ( self ) { unsafe { let buf = slice :: from_raw_parts_mut ( self . ptr , self . data_size ) ; let ret = self . fd . read ( self . offset , buf ) . map_err ( | e | Error :: Io ( Box :: new ( e ) ) ) ; let _ = self . cb . send ( ret ) ; } }
Do not call it self again
Do not call it self again
self