Module wnfs_common::utils
source · Traits§
- A conditionally compiled trait indirection for
Send
bounds. This target makes it requireSend
. - A conditionally compiled trait indirection for
Send + Sync
bounds. This target makes it requireSend + Sync
.
Functions§
- Generates a random byte array of the given length.
- Creates a
HashOutput
([u8; 32]) from a possibly incomplete slice. - Tries to convert a u64 value to IPLD codec.
Type Aliases§
- A conditionally compiled atomic or non-atomic reference counter. In this target it’s backed by
std::sync::Arc<T>
. - A conditionally compiled
BoxFuture
. Resolves to eitherBoxFuture
orLocalBoxFuture
, depending on the target. - A conditionally compiled
BoxStream
. Resolves to eitherBoxStream
orLocalBoxStream
, depending on the target.