Function gain::peer::connect[][src]

pub async fn connect(
    group_name: &str,
    peer_name: &str,
    type_name: &str
) -> Result<(RecvWriteStream, String), ConnectError>
Expand description

Connect to a peer within a group. Specify the incoming content type. The outgoing content type is returned along with the stream.