Skip to main content

Module tokio

Module tokio 

Source
Expand description

Re-exports of the tokio runtime for use with arti.

This crate helps define a slim API around our async runtime so that we can easily swap it out.

Re-exportsยง

use crate::network::TcpConnectOptions; ๐Ÿ”’
use crate::network::TcpListenOptions; ๐Ÿ”’
use crate::network::UnixConnectOptions; ๐Ÿ”’
use crate::network::UnixListenOptions; ๐Ÿ”’
use async_trait::async_trait; ๐Ÿ”’
use futures::Future; ๐Ÿ”’
use std::any::Any; ๐Ÿ”’
use std::io::Result as IoResult; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use tor_general_addr::unix; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::traits::*; ๐Ÿ”’

Modulesยง

net ๐Ÿ”’
Types used for networking (tokio implementation)

Structsยง

TokioRuntimeHandle
Wrapper around a Handle to a tokio runtime.

Functionsยง

create_runtime ๐Ÿ”’
Create and return a new Tokio multithreaded runtime.