Skip to main content

Module impl_runtime_prelude

Module impl_runtime_prelude 

Source
Expand description

Prelude that must be imported to derive SomeMockRuntime

Structsยง

CoarseInstant ๐Ÿ”’
A monotonic timestamp with reduced precision, and, in the future, saturating arithmetic
Duration ๐Ÿ”’
A Duration type to represent a span of time, typically used for system timeouts.
FakeListener ๐Ÿ”’
An unconstructable listener type.
FakeStream ๐Ÿ”’
An unconstructable AsyncRead+AsyncWrite type.
FutureObj ๐Ÿ”’
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.
SpawnError ๐Ÿ”’
An error that occurred during spawning.
SystemTime ๐Ÿ”’
A measurement of the system clock, useful for talking to external entities like the file system or other processes.

Enumsยง

SocketAddr ๐Ÿ”’
An internet socket address, either IPv4 or IPv6.

Traitsยง

Blocking ๐Ÿ”’
Support for interacting with blocking (non-async) code
CoarseTimeProvider ๐Ÿ”’
A provider of reduced-precision timestamps
Future ๐Ÿ”’
A future represents an asynchronous computation, commonly obtained by use of async.
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.
Spawn ๐Ÿ”’
The Spawn trait allows for pushing futures onto an executor that will run them to completion.
SystemTimeExt ๐Ÿ”’
Extension trait for std::time::SystemTime
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.
UdpProvider ๐Ÿ”’
Trait for a runtime that can send and receive UDP datagrams.

Type Aliasesยง

IoResult ๐Ÿ”’
A specialized Result type for I/O operations.

Attribute Macrosยง

async_trait ๐Ÿ”’

Derive Macrosยง

Deftly ๐Ÿ”’
Perform ad-hoc templating driven by a data structure