pub async fn connect<C>(cfg: C) -> Result<Metio, Error>
Expand description
Connect to a Metio Server. If the connection was successfull a client will be returned.
§Example
use metio::client::{connect, Config, error::Error};
let cfg = Config::default();
let client = connect(cfg).await?;
// Do something with the client