Copies bytes from this pipe to another.
impl Pipe {
fn copy_to(&self, dst: &Pipe, n: usize, flags: TeeFlags) -> Result<usize, Errno>
}| Name | Description |
|---|---|
| dst | The write-end of the destination pipe. |
| n | The number of bytes to copy. |
| flags | The flags to use while copying. |
Returns the number of bytes copied.
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.