🔬This is a nightly-only experimental API. (
core_io #154046)Expand description
Traits, helpers, and type definitions for core I/O functionality.
Structs§
- Borrowed
Buf Experimental - A borrowed byte buffer which is incrementally filled.
- Borrowed
Cursor Experimental - A writeable view of the unfilled portion of a
BorrowedBuf. - Chain
Experimental - Adapter to chain together two readers.
- Cursor
Experimental - A
Cursorwraps an in-memory buffer and provides it with aSeekimplementation. - Empty
Experimental Emptyignores any data written viaWrite, and will always be empty (returning zero bytes) when read viaRead.- Repeat
Experimental - A reader which yields one byte over and over and over and over and over and…
- Sink
Experimental - A writer which will move data into the void.
- Take
Experimental - Reader adapter which limits the bytes read from an underlying reader.
Enums§
- Error
Kind Experimental - A list specifying general categories of I/O error.
Functions§
- empty
Experimental - Creates a value that is always at EOF for reads, and ignores all data written.
- repeat
Experimental - Creates an instance of a reader that infinitely repeats one byte.
- sink
Experimental - Creates an instance of a writer which will successfully consume all data.
Type Aliases§
- RawOs
Error Experimental - The type of raw OS error codes.