Function metalmq_client::connect [−][src]
pub async fn connect(url: &str) -> Result<Client>
Connect to an AMQP server.
This is async code and wait for the metalmq_codec::frame::ConnectionTuneOkArgs
message.
async fn connect() -> metalmq_client::Result<()> { let conn = metalmq_client::connect("127.0.0.1:5672").await?; Ok(()) }