Expand description
Prelude that must be imported to derive
SomeMockRuntime
Structsยง
- Coarse
Instant ๐ - A monotonic timestamp with reduced precision, and, in the future, saturating arithmetic
- Duration ๐
- A
Durationtype to represent a span of time, typically used for system timeouts. - Fake
Listener ๐ - An unconstructable listener type.
- Fake
Stream ๐ - An unconstructable AsyncRead+AsyncWrite type.
- Future
Obj ๐ - A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + Send + 'a>. - Instant ๐
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration. - Spawn
Error ๐ - An error that occurred during spawning.
- System
Time ๐ - A measurement of the system clock, useful for talking to external entities like the file system or other processes.
Enumsยง
- Socket
Addr ๐ - An internet socket address, either IPv4 or IPv6.
Traitsยง
- Blocking ๐
- Support for interacting with blocking (non-async) code
- Coarse
Time ๐Provider - A provider of reduced-precision timestamps
- Future ๐
- A future represents an asynchronous computation, commonly obtained by use of
async. - 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 ๐
- The
Spawntrait allows for pushing futures onto an executor that will run them to completion. - System
Time ๐Ext - Extension trait for
std::time::SystemTime - 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.
- UdpProvider ๐
- Trait for a runtime that can send and receive UDP datagrams.
Type Aliasesยง
Attribute Macrosยง
- async_
trait ๐
Derive Macrosยง
- Deftly ๐
- Perform ad-hoc templating driven by a data structure