Skip to main content

Module tokio

Module tokio 

Source
Expand description

Entry points for use with Tokio runtimes.

Re-exportsยง

use crate::impls::tokio::TokioRuntimeHandle as Handle; ๐Ÿ”’
use crate::CompoundRuntime; ๐Ÿ”’
use crate::RealCoarseTimeProvider; ๐Ÿ”’
use crate::ToplevelBlockOn; ๐Ÿ”’
use std::io::Error as IoError; ๐Ÿ”’
use std::io::Result as IoResult; ๐Ÿ”’
use crate::impls::native_tls::NativeTlsProvider; ๐Ÿ”’
use crate::impls::rustls::RustlsProvider; ๐Ÿ”’
pub use TokioNativeTlsRuntime as PreferredRuntime;

Structsยง

TokioNativeTlsRuntime
A Runtime built around a Handle to a tokio runtime, and native_tls.
TokioRustlsRuntime
A Runtime built around a Handle to a tokio runtime, and rustls.

Functionsยง

current_handle ๐Ÿ”’
As Handle::try_current(), but return an IoError on failure.

Type Aliasesยง

HandleInner ๐Ÿ”’
Implementation type for a TokioRuntimeHandle.
RustlsHandleInner ๐Ÿ”’
Implementation for a TokioRuntimeRustlsHandle