Crate metered
Expand description
Metered variant of mpsc channels to be able to extract metrics.
Modules§
- oneshot
- Metered variant of oneshot channels to be able to extract delays caused by delayed responses.
Structs§
- Coarse
Duration - A duration type to represent an approximate span of time
- Meter
- A peek into the inner state of a meter.
- Metered
Receiver - A receiver tracking the messages consumed by itself.
- Metered
Sender - The sender component, tracking the number of items sent across it.
- Readout
- A readout of sizes from the meter. Note that it is possible, due to asynchrony, for received to be slightly higher than sent.
- Recv
Error - Error when receiving from a closed bounded channel
- Unbounded
Metered Receiver - A receiver tracking the messages consumed by itself.
- Unbounded
Metered Sender - The sender component, tracking the number of items sent across it.
Enums§
- Maybe
Time OfFlight - Measure the time of flight between insertion and removal
of a single type
T
- Send
Error - A bounded channel error
- TrySend
Error - A bounded channel error when trying to send a message (transparently wraps the inner error type)
Functions§
- channel
- Create a pair of
MeteredSender
andMeteredReceiver
. No priorities are provided - channel_
with_ priority - Create a pair of
MeteredSender
andMeteredReceiver
. Priority channel is provided - prepare_
with_ tof - unbounded
- Create a wrapped
mpsc::channel
pair ofMeteredSender
andMeteredReceiver
.