Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::tokio::io::duplex
source · pub fn duplex(max_buf_size: usize) -> (DuplexStream, DuplexStream)
Expand description
Create a new pair of DuplexStream
s that act like a pair of connected sockets.
The max_buf_size
argument is the maximum amount of bytes that can be
written to a side before the write returns Poll::Pending
.