Function git_features::io::pipe::unidirectional
source · pub fn unidirectional(
in_flight_writes: impl Into<Option<usize>>
) -> (Writer, Reader)Available on crate feature
io-pipe only.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.