Method lrs::pipe::Pipe::write_to

Writes data from this pipe to a file descriptor.

Syntax

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

Arguments

NameDescription
dst

The file descriptor to write to.

n

The number of bytes to write.

flags

Flags to use while writing.

Return value

Returns the number of bytes written.

Remarks

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.

See also