Lines Matching defs:for
4 //! The POSIX AIO interface is used for asynchronous I/O on files and disk-like
25 //! not support this for all filesystems and devices.
48 /// Mode for `AioCb::fsync`. Controls whether only data or both data and
68 /// Mode for [`lio_listio`](fn.lio_listio.html)
79 /// Return values for [`AioCb::cancel`](struct.AioCb.html#method.cancel) and
97 unsafe impl Send for LibcAiocb {}
98 unsafe impl Sync for LibcAiocb {}
100 /// Base class for all AIO operations. Should only be used directly when
101 /// checking for completion.
102 // We could create some kind of AsPinnedMut trait, and implement it for all aio
104 // could save some code for things like polling methods. But IMHO it would
105 // provide polymorphism at the wrong level. Instead, the best place for
148 // some reserved fields are used the kernel for state, and must be
178 /// Update the notification settings for an existing AIO operation that has
186 "Can't change notification settings for an in-progress operation"
192 impl Debug for AioCb {
201 impl Drop for AioCb {
219 /// Should only be called once for each operation, after [`Aio::error`]
220 /// indicates that it has completed. The result is the same as for the
230 /// The operating system is not required to implement cancellation for all
281 /// Issue an aio operation and use `error` to poll for completion. Polling
346 /// Update the notification settings for an existing AIO operation that has
350 /// Returns the `SigEvent` that will be used for notification.
475 impl Aio for AioFsync {
496 impl AsRef<libc::aiocb> for AioFsync {
600 impl<'a> Aio for AioRead<'a> {
606 impl<'a> AsMut<libc::aiocb> for AioRead<'a> {
612 impl<'a> AsRef<libc::aiocb> for AioRead<'a> {
722 impl<'a> Aio for AioReadv<'a> {
729 impl<'a> AsMut<libc::aiocb> for AioReadv<'a> {
736 impl<'a> AsRef<libc::aiocb> for AioReadv<'a> {
836 impl<'a> Aio for AioWrite<'a> {
842 impl<'a> AsMut<libc::aiocb> for AioWrite<'a> {
848 impl<'a> AsRef<libc::aiocb> for AioWrite<'a> {
955 impl<'a> Aio for AioWritev<'a> {
962 impl<'a> AsMut<libc::aiocb> for AioWritev<'a> {
969 impl<'a> AsRef<libc::aiocb> for AioWritev<'a> {
975 /// Cancels outstanding AIO requests for a given file descriptor.
1072 /// Use `lio_listio` to submit an aio operation and wait for its completion. In
1074 /// This mode is useful for otherwise-synchronous programs that want to execute
1098 /// technique for reducing overall context-switch overhead, especially when
1119 /// // We must wait for the completion of each individual operation