Module oneshot
Expand description
Metered variant of oneshot channels to be able to extract delays caused by delayed responses.
Structs§
- Measurements
- Obtained measurements by the
Receiver
side of theMeteredOneshot
. - Metered
Receiver - Oneshot receiver, created by
channel
. - Metered
Sender - Oneshot sender, created by
channel
. - Output
With Measurements - A wrapping type for the actual type
T
that is sent with the oneshot yet allow to attachMeasurements
to it.
Enums§
Traits§
- Measurable
- A dummy trait that allows implementing
measurements
forResult<_,_>
.
Functions§
- channel
- Create a new pair of
OneshotMetered{Sender,Receiver}
.