pub fn connect(
    state: ConnectionState,
    channels: Channels,
    expected_server_id: NodeId
) -> (ConnectHandle, ConnectFuture)
Expand description

Initiates a client connection, returning a connection handle and the connection future that must be polled to complete the connection.

Note that this is the only function in this module that is tied to the gRPC protocol, all other code is generic in terms of network-core traits. This is intentional, to facilitate extension to different protocols in the future.