π¬This is a nightly-only experimental API. (
alloc_io #154046)Re-exportsΒ§
use core::mem::MaybeUninit;πuse crate::collections::VecDeque;πuse crate::io::BorrowedBuf;πExperimental use crate::io::BufReader;πuse crate::io::BufWriter;πuse crate::io::DEFAULT_BUF_SIZE;πExperimental use crate::io::Read;πuse crate::io::Result;πuse crate::io::Write;πuse crate::vec::Vec;πuse crate::alloc::Allocator;πuse crate::io::IoSlice;π
ConstantsΒ§
- IN_
MEMORY πExperimental - Readers and writers with their entire contents have the highest priority.
- UNBUFFERED π
Experimental - Unbuffered readers and writers have the lowest priority.
TraitsΒ§
- Buffered
Reader πSpec Experimental - Specialization of the read-write loop in
generic_copythat reuses the internal buffer of aBufReader. If thereβs no buffer then the writer side should be used instead. - Buffered
Writer πSpec Experimental - Specialization of the read-write loop in
generic_copythat either uses a stack buffer or reuses the internal buffer of aBufWriter.
FunctionsΒ§
- generic_
copy πExperimental - The userspace read-write-loop implementation of
io::copythat is used when OS-specific specializations for copy offloading are not available or not applicable. - stack_
buffer_ πcopy Experimental - Copies from
readertowriterusing a stack-allocated buffer (a fixed sized array).
Type AliasesΒ§
- Buffer
Priority πExperimental - This is used by
generic_copyto decide whether to useBufferedReaderSpec::copy_toorBufferedWriterSpec::copy_from.