Module narwhal_types::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 sendingAn
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.Functions
Constructor
Similar to
mpsc::channel, channel creates a pair of Sender and Receiver