Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::tokio::io::split
source · pub fn split<T>(stream: T) -> (ReadHalf<T>, WriteHalf<T>)where
T: AsyncRead + AsyncWrite,
Expand description
Splits a single value implementing AsyncRead + AsyncWrite
into separate
AsyncRead
and AsyncWrite
handles.
To restore this read/write object from its ReadHalf
and
WriteHalf
use unsplit
.