pub async fn make_connection(
    host: &str,
    vhost: Option<&str>
) -> Result<Connection, Error>
Expand description

Attempts to create a single connection to RabbitMQ. If the vhost is set to None, assumes that the connection should be established to the default virtual host.