π¬This is a nightly-only experimental API. (
alloc_io #154046)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.