Function copy_bidirectional_with_sizes
pub async fn copy_bidirectional_with_sizes<A, B>(
a: &mut A,
b: &mut B,
a_to_b_buf_size: usize,
b_to_a_buf_size: usize,
) -> Result<(u64, u64)>
Available on crate feature
io-util only.Copies data in both directions between a and b using buffers of the specified size.
This method is the same as the copy_bidirectional(), except that it allows you to set the size of the internal buffers used when copying data.
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/io/fn.copy_bidirectional_with_sizes.html