Skip to main content

Module io

Module io 

Source
πŸ”¬This is a nightly-only experimental API. (alloc_io #154046)
Expand description

Traits, helpers, and type definitions for core I/O functionality.

Re-exportsΒ§

pub use core::io::IoHandle; πŸ‘» Experimental
pub use core::io::OsFunctions; πŸ‘» Experimental
pub use core::io::SizeHint; πŸ‘» Experimental
pub use core::io::WriteThroughCursor; πŸ‘» Experimental
pub use core::io::chain; πŸ‘» Experimental
pub use core::io::default_write_vectored; πŸ‘» Experimental
pub use core::io::slice_write; πŸ‘» Experimental
pub use core::io::slice_write_all; πŸ‘» Experimental
pub use core::io::slice_write_all_vectored; πŸ‘» Experimental
pub use core::io::slice_write_vectored; πŸ‘» Experimental
pub use core::io::stream_len_default; πŸ‘» Experimental
pub use core::io::take; πŸ‘» Experimental

ModulesΒ§

cursor πŸ”’ Experimental
error πŸ”’ Experimental
impls πŸ”’ Experimental

MacrosΒ§

const_errorExperimental
Creates a new I/O error from a known kind of error and a string literal.

StructsΒ§

BorrowedBufExperimental
A borrowed buffer of initially uninitialized elements, which is incrementally filled.
BorrowedCursorExperimental
A writeable view of the unfilled portion of a BorrowedBuf.
ChainExperimental
Adapter to chain together two readers.
CursorExperimental
A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
EmptyExperimental
Empty ignores any data written via Write, and will always be empty (returning zero bytes) when read via Read.
ErrorExperimental
The error type for I/O operations of the Read, Write, Seek, and associated traits.
IoSliceExperimental
A buffer type used with Write::write_vectored.
IoSliceMutExperimental
A buffer type used with Read::read_vectored.
RepeatExperimental
A reader which yields one byte over and over and over and over and over and…
SimpleMessage πŸ‘» Experimental
SinkExperimental
A writer which will move data into the void.
TakeExperimental
Reader adapter which limits the bytes read from an underlying reader.

EnumsΒ§

ErrorKindExperimental
A list specifying general categories of I/O error.
SeekFromExperimental
Enumeration of possible methods to seek within an I/O object.

TraitsΒ§

SeekExperimental
The Seek trait provides a cursor which can be moved within a stream of bytes.
WriteExperimental
A trait for objects which are byte-oriented sinks.

FunctionsΒ§

emptyExperimental
Creates a value that is always at EOF for reads, and ignores all data written.
repeatExperimental
Creates an instance of a reader that infinitely repeats one byte.
sinkExperimental
Creates an instance of a writer which will successfully consume all data.

Type AliasesΒ§

RawOsErrorExperimental
The type of raw OS error codes.
ResultExperimental
A specialized Result type for I/O operations.