Expand description
IO traits
Modules§
- as_fd
- We impl AsReadFd and AsWriteFd for some structs.
- poll_io
- Traits, helpers, and type definitions for asynchronous I/O functionality.
- sink
- Sink trait in GAT style.
- stream
- Stream trait in GAT style.
Structs§
- BufReader
- BufReader is a struct with a buffer. BufReader implements AsyncBufRead and AsyncReadRent, and if the inner io implements AsyncWriteRent, it will delegate the implementation.
- BufWriter
- BufWriter is a struct with a buffer. BufWriter implements AsyncWriteRent, and if the inner io implements AsyncReadRent, it will delegate the implementation.
- Cancel
Handle - CancelHandle is used to pass to io actions with CancelableAsyncReadRent. Create a CancelHandle with Canceller::handle.
- Canceller
- Canceller is a user-hold struct to cancel io operations. A canceller can associate with multiple io operations.
- Owned
Read Half - Owned Read Half Part
- Owned
Write Half - Owned Write Half Part
- Prefixed
Read Io - PrefixedReadIO facilitates the addition of a prefix to an IO stream, enabling stream rewinding and peeking capabilities. Subsequent reads will preserve access to the original stream contents.
Traits§
- Async
BufRead - AsyncBufRead: async read with buffered content
- Async
BufRead Ext - AsyncBufReadExt
- Async
Read Rent - The
AsyncReadRent
trait defines asynchronous reading operations for objects that implement it. - Async
Read Rent At - AsyncReadRentAt: async read with a ownership of a buffer and a position
- Async
Read Rent Ext - AsyncReadRentExt
- Async
Write Rent - The
AsyncWriteRent
trait provides asynchronous writing capabilities for structs that implement it. - Async
Write Rent At - AsyncWriteRentAt: async write with a ownership of a buffer and a position
- Async
Write Rent Ext - AsyncWriteRentExt
- Cancelable
Async Read Rent - CancelableAsyncReadRent: async read with a ownership of a buffer and ability to cancel io.
- Cancelable
Async Read Rent Ext - CancelableAsyncReadRentExt
- Cancelable
Async Write Rent - CancelableAsyncWriteRent: async write with a ownership of a buffer and ability to cancel io.
- Cancelable
Async Write Rent Ext - CancelableAsyncWriteRentExt
- Into
Comp Io - Convert a poll-based io to a completion-based io.
- Into
Poll Io - Convert a completion-based io to a poll-based io.
- Split
- This is a dummy unsafe trait to inform monoio,
the object with has this
Split
trait can be safely split to read/write object in both form ofOwned
orBorrowed
. - Splitable
- Inner split trait
Functions§
- copy
- Copy data from reader to writer.