Skip to main content

drain

Function drain 

Source
pub fn drain(reader: impl Read, maximum: usize) -> Result<(Vec<u8>, bool)>
Expand description

Keep draining beyond the limit to avoid pipe deadlocks; never retain excess bytes.