Expand description
Type definitions for I/O functionality.
The main types of this module are the Buf
and BufMut
traits, which
define the requirements on buffers using the I/O system calls on an file
descriptor (AsyncFd
). Additionally the BufSlice
and BufMutSlice
traits existing to define the behaviour of buffers in vectored I/O.
A specialised read buffer pool implementation exists in ReadBufPool
,
which is a buffer pool managed by the kernel when making read(2)
-like
system calls.
Finally we have the stdin
, stdout
and stderr
functions to create
AsyncFd
s for standard in, out and error respectively.
Structs§
Future
behindAsyncFd::close
.Future
behindAsyncFd::read
.- Buffer reference from a
ReadBufPool
. - A read buffer pool.
Future
behindAsyncFd::read_n
.Future
behindAsyncFd::read_n_vectored
.Future
behindAsyncFd::read_vectored
.Future
behindAsyncFd::splice_to
.- An
AsyncFd
for stderr. - An
AsyncFd
for stdin. - An
AsyncFd
for stdout. Future
behindAsyncFd::write
.Future
behindAsyncFd::write_all
.Future
behindAsyncFd::write_all_vectored
.Future
behindAsyncFd::write_vectored
.
Traits§
- Trait that defines the behaviour of buffers used in writing, which requires read only access.
- Trait that defines the behaviour of buffers used in reading, which requires mutable access.
- Trait that defines the behaviour of buffers used in reading using vectored I/O, which requires mutable access.
- Trait that defines the behaviour of buffers used in writing using vectored I/O, which requires read only access.
Functions§
- Create a new
Stderr
. - Create a new
Stdin
. - Create a new
Stdout
.