Function metio::client::connect

source ·
pub async fn connect<C>(cfg: C) -> Result<Metio, Error>
where C: Into<Config>,
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