Expand description
Async IO abstractions.
Re-exports§
pub use crate::runtime::AsyncPollable;
Structs§
- Async
Input Byte Stream - Wrapper of
AsyncInputStreamthat implsfutures_lite::stream::Streamwith itemResult<u8, std::io::Error>. - Async
Input Chunk Stream - Wrapper of
AsyncInputStreamthat implsfutures_lite::stream::Streamwith an item ofResult<Vec<u8>, std::io::Error> - Async
Input Stream - A wrapper for WASI’s
InputStreamresource that provides implementations ofAsyncReadandAsyncPollable. - Async
Output Stream - A wrapper for WASI’s
output-streamresource that provides implementations ofAsyncWriteandAsyncPollable. - Cursor
- A
Cursorwraps an in-memory buffer and provides it with aAsyncSeekimplementation. - Empty
- Error
- The error type for I/O operations.
- Stderr
- Use the program’s stdout as an
AsyncOutputStream. - Stdin
- Use the program’s stdin as an
AsyncInputStream. - Stdout
- Use the program’s stdout as an
AsyncOutputStream.
Enums§
- Seek
From - Enumeration of possible methods to seek within an I/O object.
Traits§
- Async
Read - Read bytes from a source.
- Async
Seek - The
Seektrait provides a cursor which can be moved within a stream of bytes. - Async
Write - Write bytes to a sink.
Functions§
- copy
- Copy bytes from a reader to a writer.
- empty
- Creates a value that is always at EOF for reads, and ignores all data written.
- stderr
- Get the program’s stdout for use as an
AsyncOutputStream. - stdin
- Get the program’s stdin for use as an
AsyncInputStream. - stdout
- Get the program’s stdout for use as an
AsyncOutputStream.
Type Aliases§
- Result
- A specialized Result type for I/O operations.