Expand description
Declarations for traits that we need our runtimes to implement.
Re-exportsยง
use async_trait::async_trait;๐use asynchronous_codec::Framed;๐use futures::future::FutureExt;๐use futures::future::RemoteHandle;๐use futures::stream;๐use futures::task::Spawn;๐use futures::task::SpawnError;๐use futures::AsyncRead;๐use futures::AsyncWrite;๐use futures::Future;๐use std::any::Any;๐use std::borrow::Cow;๐use std::fmt::Debug;๐use std::fmt::Debug;๐use std::io;๐use std::io::Result as IoResult;๐use std::net;๐use tor_general_addr::unix;๐use web_time_compat::Duration;๐use web_time_compat::Instant;๐use web_time_compat::InstantExt;๐use web_time_compat::SystemTime;๐use web_time_compat::SystemTimeExt;๐use tor_cert_x509::TlsKeyAndCert;๐use crate::network::TcpListenOptions;๐use crate::network::UnixListenOptions;๐
Structsยง
- NoOp
Stream OpsHandle - A
StreamOpshandle that always returns an error. - TlsAcceptor
Settings - Settings used for constructing a TlsAcceptor.
- TlsServer
Unsupported - An error returned by TlsProvider::tls_acceptor when the TlsProvider does not have TLS server support.
- Unsupported
Stream Op - Error: Tried to perform a
StreamOpsoperation on an unsupported stream type or on an unsupported platform.
Traitsยง
- Blocking
- Support for interacting with blocking (non-async) code
- Certified
Conn - An object with a peer certificate: typically a TLS connection.
- Coarse
Time Provider - A provider of reduced-precision timestamps
- JoinSet
- Trait representing a collection of tasks spawned on a
Runtime. - Join
SetProvider - Trait for a runtime that can create
JoinSets. - NetStream
Listener - Trait for a local socket that accepts incoming streams.
- NetStream
Provider - Trait for a runtime that can create and accept connections over network sockets.
- Runtime
- A runtime for use by Tor client library code.
- Sleep
Provider - Trait for a runtime that can wait until a timer has expired.
- Spawn
Ext - Extension trait for
Spawn. - Stream
Ops - Additional operations that can be performed on connected stream sockets.
- TlsConnector
- An object that knows how to wrap a TCP connection (where the type of said TCP
connection is
S) with TLS. - TlsProvider
- Trait for a runtime that knows how to create TLS connections over
TCP streams of type
S. - Toplevel
Block On - Trait for a runtime that can be entered to block on a toplevel future.
- Toplevel
Runtime - A runtime that we can use to run Tor as a client.
- UdpProvider
- Trait for a runtime that can send and receive UDP datagrams.
- UdpSocket
- Trait for a locally bound Udp socket that can send and receive datagrams.