[][src]Module twitchchat::connector

This is supported on crate feature async only.

This module lets you choose which runtime you want to use.

By default, TLS is disabled to make building the crate on various platforms easier.

To use..

Read/Write providerFeatures
async_ioasync-io
smolsmol
async_stdasync-std
tokiotokio and tokio-util

TLS

If you want TLS supports, enable the above runtime and also enable the cooresponding features:

Read/Write providerRuntimeFeaturesTLS backend
async_ioasync_io"async-tls"rustls
smolsmol"async-tls"rustls
async_stdasync_std"async-tls"rustls
tokiotokio"tokio-util", "tokio-rustls", "webpki-roots"rustls
tokiotokio"tokio-util", "tokio-native-tls", "native-tls"native-tls

Modules

async_ioasync

Connector for using an async_io wrapper over std::net::TcpStream

async_stdasync

Connector for using an async_std::net::TcpStream

smolasync

Connector for using a smol::Async wrapper over std::net::TcpStream

tokioasync

Connector for using a tokio::net::TcpStream

Structs

AsyncIoConnectorasync

A async_io connector. This does not use TLS

AsyncIoConnectorTlsasync

A async_io connector that uses async-tls (a rustls wrapper). This uses TLS.

AsyncStdConnectorasync

A async_std connector. This does not use TLS

AsyncStdConnectorTlsasync

A async_std connector that uses async-tls (a rustls wrapper). This uses TLS.

SmolConnectorasync

A smol connector. This does not use TLS

SmolConnectorTlsasync

A smol connector that uses async-tls (a rustls wrapper). This uses TLS.

TokioConnectorasync

A tokio connector. This does not use TLS

TokioConnectorNativeTlsasync

A tokio connector that uses tokio-native-tls (a native-tls wrapper). This uses TLS.

TokioConnectorRustTlsasync

A tokio connector that uses tokio-rustls (a rustls wrapper). This uses TLS.

Traits

Connectorasync

The connector trait. This is used to abstract out runtimes.