Method lrs::pipe::Pipe::set_capacity

Sets the capacity of the pipe.

Syntax

impl Pipe {
    fn set_capacity(&self, cap: usize) -> Result<(), Errno>
}

Arguments

NameDescription
cap

The new capacity of the pipe.

Remarks

The new capacity must be able to hold the bytes currently buffered in the pipe or the operation fails.

See also