Lines Matching defs:new

5 //! devices.  It supports [`read`](struct.AioRead.html#method.new),
6 //! [`write`](struct.AioWrite.html#method.new),
7 //! [`fsync`](struct.AioFsync.html#method.new),
8 //! [`readv`](struct.AioReadv.html#method.new), and
9 //! [`writev`](struct.AioWritev.html#method.new), operations, subject to
153 a.aio_sigevent = SigEvent::new(sigev_notify).sigevent();
188 self.aiocb.0.aio_sigevent = SigEvent::new(sigev_notify).sigevent();
253 /// let mut aiocb = Box::pin(AioWrite::new(f.as_raw_fd(),
294 /// let mut aiocb = Box::pin(AioWrite::new(f.as_raw_fd(),
330 /// let mut aiof = Box::pin(AioFsync::new(f.as_raw_fd(), AioFsyncMode::O_SYNC,
422 /// let mut aiof = Box::pin(AioFsync::new(f.as_raw_fd(), AioFsyncMode::O_SYNC,
445 /// Create a new `AioFsync`.
456 pub fn new(
527 /// AioRead::new(
563 /// Create a new `AioRead`, placing the data in a mutable slice.
575 pub fn new(
641 /// let mut rbufs = [IoSliceMut::new(&mut rbuf0), IoSliceMut::new(&mut rbuf1)];
646 /// AioReadv::new(
681 /// Create a new `AioReadv`, placing the data in a list of mutable slices.
694 pub fn new(
761 /// AioWrite::new(
795 /// Construct a new `AioWrite`.
807 pub fn new(
875 /// let wbufs = [IoSlice::new(wbuf0), IoSlice::new(wbuf1)];
878 /// AioWritev::new(
910 /// Construct a new `AioWritev`.
923 pub fn new(
993 /// let mut aiocb = Box::pin(AioWrite::new(f.as_raw_fd(),
1038 /// let mut aiocb = Box::pin(AioWrite::new(f.as_raw_fd(),
1083 /// let mut aiow = Box::pin(AioWrite::new(
1110 /// let mut aiow = Box::pin(AioWrite::new(
1145 /// pub static ref SIGNALED: AtomicBool = AtomicBool::new(false);
1151 /// let sa = SigAction::new(SigHandler::Handler(sigfunc),
1159 /// let mut aiow = Box::pin(AioWrite::new(
1182 let sigev = SigEvent::new(sigev_notify);
1199 let aiof = AioFsync::new(666, AioFsyncMode::O_SYNC, 0, sev);
1206 let aior = AioRead::new(666, 0, &mut rbuf, 0, sev);
1213 let aiow = AioWrite::new(666, 0, &wbuf, 0, sev);
1226 let mut rbufs = [IoSliceMut::new(&mut rbuf)];
1227 let aiorv = AioReadv::new(666, 0, &mut rbufs[..], 0, sev);
1234 let wbufs = [IoSlice::new(&wbuf)];
1235 let aiowv = AioWritev::new(666, 0, &wbufs, 0, sev);