[][src]Function gain::origin::accept

pub async fn accept() -> Result<RecvWriteStream, AcceptError>

Accept a new incoming connection.

The call is blocked while no connection is available, or the environment-dependent maximum number of simultaneous connections is reached.

Typically there is a correspondence between a connection and a program invocation or resumption.