pub fn splice(
source: &impl AsRawFd,
target: &impl AsRawFd,
len: usize
) -> Result<usize>Expand description
Less noisy wrapper around [nix::fcntl::splice].
Up to len bytes are moved from source to target. Returns the number
of successfully moved bytes.
At least one of source and target must be some sort of pipe.
To get around this requirement, consider splicing from your source into
a pipe and then from the pipe into your target (with splice_exact):
this is still very efficient.