Skip to main content

duplex_pair

Function duplex_pair 

Source
pub fn duplex_pair() -> (DuplexByteStreams, DuplexByteStreams)
Expand description

In-memory ACP transport pair: (agent_transport, client_transport). Hand each half to a connect_to / connect_with call on the corresponding side. Must be used inside a LocalSet since the runners are spawn_local’d.