[−][src]Function tokio_nats::connect
pub async fn connect(config: NatsConfig) -> Result<NatsClient, Error>
Make a new NATS connection. Return a NatsClient
which can be cloned to obtain multiple handles
to the same connection.
pub async fn connect(config: NatsConfig) -> Result<NatsClient, Error>
Make a new NATS connection. Return a NatsClient
which can be cloned to obtain multiple handles
to the same connection.