Writes data from this pipe to a file descriptor.
impl Pipe {
fn write_to<T>(&self, dst: &T, n: usize, flags: SpliceFlags) -> Result<usize, Errno>
where T: FDContainer,
}| Name | Description |
|---|---|
| dst | The file descriptor to write to. |
| n | The number of bytes to write. |
| flags | Flags to use while writing. |
Returns the number of bytes written.
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.