Trait network_clique::Splittable
source · pub trait Splittable: AsyncWrite + AsyncRead + ConnectionInfo + Unpin + Send {
type Sender: AsyncWrite + ConnectionInfo + Unpin + Send;
type Receiver: AsyncRead + ConnectionInfo + Unpin + Send;
// Required method
fn split(self) -> (Self::Sender, Self::Receiver);
}
Expand description
A stream that can be split into a sending and receiving part.