Skip to main content

Module smol

Module smol 

Source
Expand description

Entry points for use with smol runtimes. This crate helps define a slim API around our async runtime so that we can easily swap it out.

Re-exportsยง

pub use crate::impls::smol::create_runtime as create_runtime_impl;
use crate::RealCoarseTimeProvider; ๐Ÿ”’
use crate::ToplevelBlockOn; ๐Ÿ”’
use crate::compound::CompoundRuntime; ๐Ÿ”’
use std::io::Result as IoResult; ๐Ÿ”’
use crate::impls::native_tls::NativeTlsProvider; ๐Ÿ”’
use crate::impls::rustls::RustlsProvider; ๐Ÿ”’
use crate::impls::smol::SmolRuntime; ๐Ÿ”’
pub use SmolNativeTlsRuntime as PreferredRuntime;

Structsยง

SmolNativeTlsRuntime
A Runtime powered by smol and native-tls.
SmolRustlsRuntime
A Runtime powered by smol and rustls.

Type Aliasesยง

NativeTlsInner ๐Ÿ”’
Implementation type for SmolRuntime using NativeTls.
RustlsInner ๐Ÿ”’
Implementation type for SmolRuntime using Rustls.