Expand description
Declarations for traits that we need our runtimes to implement.
Structs§
- NoOp
Stream OpsHandle - A
StreamOps
handle that always returns an error. - Unsupported
Stream Op - Error: Tried to perform a
StreamOps
operation 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
- 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.
- Stream
Ops - Trait providing additional operations on network 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.