Skip to main content

recv_until

Function recv_until 

Source
pub fn recv_until(io: &mut dyn Io, done: impl Fn(&[u8]) -> bool) -> Vec<u8> ⓘ
Expand description

Read from the device side until done holds for everything read; panics after WAIT, and at once when the host closed the connection for good.