Module utils
Source - CondSend
- A conditionally compiled trait indirection for
Send bounds.
This target makes it require Send. - CondSync
- A conditionally compiled trait indirection for
Send + Sync bounds.
This target makes it require Send + Sync.
- boxed_fut
- boxed_stream
- error
- get_random_bytes
- Generates a random byte array of the given length.
- read_fully
- to_hash_output
- Creates a
HashOutput ([u8; 32]) from a possibly incomplete slice.
- Arc
- A conditionally compiled atomic or non-atomic reference counter.
In this target it’s backed by
std::sync::Arc<T>. - BoxFuture
- A conditionally compiled
BoxFuture.
Resolves to either BoxFuture or LocalBoxFuture, depending on the target. - BoxStream
- A conditionally compiled
BoxStream.
Resolves to either BoxStream or LocalBoxStream, depending on the target.