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