Skip to main content

Module tonic

Module tonic 

Source

Structsยง

TLSConfigParams ๐Ÿ”’
TLSConfigResolved ๐Ÿ”’
TLS Config with already read files.
TonicConnector
URLParams ๐Ÿ”’

Enumsยง

Error
Errors occuring when parsing a gRPC backend URL, or trying to connect to it.
Transport ๐Ÿ”’

Functionsยง

bool_from_int ๐Ÿ”’
channel_from_url
Turn a url::Url to a [Channel] if it can be parsed successfully. It supports the following schemes (and URLs):
resolve_tls_config ๐Ÿ”’
Takes a TLSConfigParams, and returns a TLSConfigResolved. Going from one to the other potentially requires doing IO, so this function is async.
setup_endpoint_http ๐Ÿ”’
Helper function configuring [Endpoint] from a url and Option<TLSConfigResolved>. Factored out to be used from both TonicConnector::connect and TonicConnector::connect_expect_lazy.