Skip to main content

two_node_streams

Function two_node_streams 

Source
pub async fn two_node_streams(
    genesis: [u8; 32],
) -> Result<(MockPeer, MockPeer, Box<dyn MeshStream>, Box<dyn MeshStream>), MeshError>
Expand description

Two mock peers sharing a fabric, with an established stream pair.

Returns (peer_a, peer_b, stream_from_a, stream_from_b) after A listens and B connects.