Module iota_metrics::metered_channel

source ·

Structs§

  • A newtype for an mpsc::Permit which allows us to inject gauge accounting in the case the permit is dropped w/o sending
  • An [mpsc::Receiver] with an [IntGauge] counting the number of currently queued items.
  • Stream API Wrappers! A wrapper around crate::metered_channel::Receiver that implements [Stream].
  • An [mpsc::Sender] with an [IntGauge] counting the number of currently queued items.
  • An [mpsc::WeakSender] with an [IntGauge] counting the number of currently queued items.

Traits§

  • Defines an asynchronous method with_permit for working with a permit to send a message.

Functions§

  • Constructor Similar to mpsc::channel, channel creates a pair of Sender and Receiver Deprecated: use monitored_mpsc::channel instead.