pub fn tee<FdIn, FdOut>( fd_in: FdIn, fd_out: FdOut, len: usize, flags: SpliceFlags, ) -> Result<usize, Errno> ⓘwhere FdIn: AsFd, FdOut: AsFd,
dep_rustix
tee(fd_in, fd_out, len, flags)—Copy data between pipes without consuming it.
tee(fd_in, fd_out, len, flags)
This reads up to len bytes from in_fd without consuming them, and writes them to out_fd.
len
in_fd
out_fd