Expand description
Common utilities and types for msg-rs.
Modules§
Structs§
- Channel
- A bounded, bi-directional channel for sending and receiving messages.
Relies on Tokio’s
mpscchannel. - JoinMap
- A collection of keyed tasks spawned on a Tokio runtime. Hacky implementation of a join set that allows for a key to be associated with each task by having the task return a tuple of (key, value).
Traits§
- IpAddr
Ext - Extension trait for IP addresses.
- Socket
Addr Ext - Extension trait for
SocketAddr.
Functions§
- async_
error - Wraps the given error in a boxed future.
- channel
- Creates a new channel with the given buffer size. This will return a tuple of
2
Channels, both of which can be used to send and receive messages. - unix_
micros - Returns the current UNIX timestamp in microseconds.