Method lrs::pipe::Pipe::read

Reads from the pipe.

Syntax

impl Pipe {
    fn read(&self, buf: &mut [u8]) -> Result<usize, Errno>
}

Arguments

NameDescription
buf

The buffer that will be filled by the operation.

Return value

Returns the number of bytes read.

Remarks

If the length of the buffer is 0, the meaning of a 0 return value is unspecified. Otherwise a return value of 0 signals End-Of-File.

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