Expand description
Utility functions for interacting with any runtime.
Modules§
- buffer
- Buffers for reading and writing to crate::Blobs.
- signal
- Mechanisms for coordinating actions across many tasks.
Structs§
- Blocker
- Synchronization primitive that enables a thread to block until a waker delivers a signal.
- Handle
- Handle to a spawned task.
- Metric
Encoder - A writer that deduplicates HELP and TYPE metadata lines during Prometheus encoding.
- RwLock
- Async reader–writer lock.
Enums§
- Context
Cell - A wrapper around context that allows it to be taken and returned without requiring
all interactions to unwrap (as with
Option<C>). - Execution
- The execution mode of a task.
Functions§
- add_
attribute - Add an attribute to a sorted attribute list, maintaining sorted order via binary search.
- reschedule
- Yield control back to the runtime.
- validate_
label - Validates that a label matches Prometheus metric name format:
[a-zA-Z][a-zA-Z0-9_]*.
Type Aliases§
- RwLock
Read Guard - Shared guard returned by RwLock::read.
- RwLock
Write Guard - Exclusive guard returned by RwLock::write.