Method lrs::pipe::Pipe::read_from

Reads data from a file descriptor into the pipe.

Syntax

impl Pipe {
    fn read_from<T>(&self, src: &T, n: usize, flags: SpliceFlags) -> Result<usize, Errno>
        where T: FDContainer,
}

Arguments

NameDescription
src

The source from which to read.

n

The number of bytes to read.

flags

Flags to use while reading.

Return value

Returns the number of bytes read.

Remarks

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.

See also