Function arti::socks::write_all_and_flush
source · async fn write_all_and_flush<W>(writer: &mut W, buf: &[u8]) -> Result<()>where
W: AsyncWrite + Unpin,
Expand description
write_all the data to the writer & flush the writer if write_all is successful.