Module prioritized_metered_channel::oneshot
source · Expand description
Metered variant of oneshot channels to be able to extract delays caused by delayed responses.
Structs
- Obtained measurements by the
Receiverside of theMeteredOneshot. - Oneshot receiver, created by
channel. - Oneshot sender, created by
channel. - A wrapping type for the actual type
Tthat is sent with the oneshot yet allow to attachMeasurementsto it.
Enums
- Provides the reason for termination.
Traits
- A dummy trait that allows implementing
measurementsforResult<_,_>.
Functions
- Create a new pair of
OneshotMetered{Sender,Receiver}.