[go: up one dir, main page]

Module buf_copy

Module buf_copy 

Source
Expand description

This module provides several buffer-based copy/write functions that leverage the splice system call in Linux systems, thus increasing the I/O performance of copying between two file descriptors. This module is mostly used by utilities to work around the limitations of Rust’s fs::copy which does not handle copying special files (e.g pipes, character/block devices).

Modules§

common
linux
Buffer-based copying implementation for Linux and Android.

Traits§

FdReadable
A readable file descriptor.
FdWritable
A writable file descriptor.

Functions§

copy_stream
Copy data from Read implementor source into a Write implementor dest. This works by reading a chunk of data from source and writing the data to dest in a loop.