pub async fn connect(
mailbox: &Mailbox,
port: PortRef<Connect>,
) -> Result<ActorConnection<Mailbox>>
Expand description
Helper used by clients to initiate a connection by sending a Connect
message to the given port
and awaiting an Accept
response. Returns AsyncRead
and AsyncWrite
streams that can be used
to communicate with the remote actor.