devela::_dep::rustix::pipe

Function tee

pub fn tee<FdIn, FdOut>(
    fd_in: FdIn,
    fd_out: FdOut,
    len: usize,
    flags: SpliceFlags,
) -> Result<usize, Errno> 
where FdIn: AsFd, FdOut: AsFd,
Available on crate feature dep_rustix only.
Expand description

tee(fd_in, fd_out, len, flags)—Copy data between pipes without consuming it.

This reads up to len bytes from in_fd without consuming them, and writes them to out_fd.

§References