pub async fn accept<C: CanOpenPort + CanSend>(
caps: C,
self_id: ActorId,
message: Connect,
) -> Result<ActorConnection<C>>
Expand description
Helper used by Handler<Connect>
s to accept a connection initiated by a Connect
message and
return AsyncRead
and AsyncWrite
streams that can be used to communicate with the other side.