mysten_metrics

Module 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.
  • 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§

Functions§

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