Reads data from a file descriptor into the pipe.
impl Pipe {
fn read_from<T>(&self, src: &T, n: usize, flags: SpliceFlags) -> Result<usize, Errno>
where T: FDContainer,
}| Name | Description |
|---|---|
| src | The source from which to read. |
| n | The number of bytes to read. |
| flags | Flags to use while reading. |
Returns the number of bytes read.
self must be the write-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.