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