Method lrs::pipe::Pipe::copy_to

Copies bytes from this pipe to another.

Syntax

impl Pipe {
    fn copy_to(&self, dst: &Pipe, n: usize, flags: TeeFlags) -> Result<usize, Errno>
}

Arguments

NameDescription
dst

The write-end of the destination pipe.

n

The number of bytes to copy.

flags

The flags to use while copying.

Return value

Returns the number of bytes copied.

Remarks

self must be the read-end of a pipe.

If lrs was compiled with the retry option, this call will automatically retry the operation if the call was interrupted by a signal.

See also