Function git_features::io::pipe::unidirectional [−][src]
pub fn unidirectional(
in_flight_writes: impl Into<Option<usize>>
) -> (Writer, Reader)
Returns the (write
, read
) ends of a pipe for transferring bytes, analogous to a unix pipe.
in_flight_writes
defines the amount of chunks of bytes to keep in memory until thewrite
end will block when writing. IfNone
or0
, thewrite
end will always block until theread
end consumes the transferred bytes.