init_global

Function init_global 

Source
pub async fn init_global<C: Into<ClientOptions>>(
    options: C,
) -> Result<(), Error>
Expand description

init_global_client will initialize a globally available client singleton. This singleton can be used when you don’t need more than one instance and have no need to regularly change the client options.

§Errors

This function returns Error::AlreadyInitialized if called more than once.