Skip to main content

dial

Function dial 

Source
pub fn dial<Out: RemoteMessage, In: RemoteMessage>(
    addr: ChannelAddr,
) -> Result<DuplexClient<Out, In>, ClientError>
Expand description

Connect to a duplex server. Returns a DuplexClient wrapping the send/recv halves and the spawned recv/send task; callers use DuplexClient::tx / DuplexClient::take_rx to extract the halves and DuplexClient::join to deterministically shut the session down.