Module traits

Source
Expand description

Declarations for traits that we need our runtimes to implement.

Structs§

NoOpStreamOpsHandle
A StreamOps handle that always returns an error.
UnsupportedStreamOp
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
CertifiedConn
An object with a peer certificate: typically a TLS connection.
CoarseTimeProvider
A provider of reduced-precision timestamps
NetStreamListener
Trait for a local socket that accepts incoming streams.
NetStreamProvider
Trait for a runtime that can create and accept connections over network sockets.
Runtime
A runtime for use by Tor client library code.
SleepProvider
Trait for a runtime that can wait until a timer has expired.
StreamOps
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.
ToplevelBlockOn
Trait for a runtime that can be entered to block on a toplevel future.
ToplevelRuntime
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.