Available on crate feature
async
only.Expand description
Channel utilities and extensions.
Modules§
- trigger
- Trigger channels.
Structs§
- Guarded
Receiver - A wrapper around
oneshot::Receiver
that will call the provided closure if there is a value in the receiver when it’s dropped. - Instrumented
Unbounded Receiver - A wrapper around tokio’s
UnboundedReceiver
that increments a metric when a recv finishes. - Instrumented
Unbounded Sender - A wrapper around tokio’s
UnboundedSender
that increments a metric when a send occurs.
Traits§
- Instrumented
Channel Metric - A trait describing a metric that can be used with an
instrumented_unbounded_channel
. - Oneshot
Receiver Ext - Extensions for oneshot channel types.
Functions§
- instrumented_
unbounded_ channel - A wrapper around tokio’s mpsc unbounded channels that connects metrics that are incremented when sends or receives happen.