Module util

Module util 

Source
Expand description

A collection of utilities to deal with IO, futures and runtimes

Structs§

IOHandle
A synchronous IO handle
RuntimeParts
Wrapper around separate Executor and Reactor implementing RuntimeKit
SocketAddrs
Wrapper to impl AsyncToSocketAddrs from an IntoIterator<Item = SocketAddr>
SocketAddrsFromIpAddrs
Iterator for SocketAddr computed from IpAddr + port
SocketAddrsResolver
Wrapper to perform blocking name resolution on top of an async runtime
UnitFuture
Wrap a Future to discard its output

Functions§

block_on_tokio
Block on the given future in a tokio context, creating a new one if required
inside_tokio
Check whether we’re in a tokio context or not