Expand description
General purpose utilities
Modules§
- backoff_
util - broadcaststream
- Copied from
tokio_stream0.1.12 to use our optional Send bounds - update_
merge
Structs§
- FmtCompact
Error Anyhow - A wrapper with
fmt::Displayforanyhow::Errorthat will print chain of causes - FmtError
Compact - A wrapper with
fmt::Displayfor anyE : Errorthat will print chain of causes - SafeUrl
- Wrapper for
Urlthat only prints the scheme, domain, port and path portion of aUrlin itsDisplayimplementation. - Spanned
Statics§
Traits§
- FmtCompact
- Simple utility trait to print error chains
- FmtCompact
Anyhow - Simple utility trait to print error chains (for
anyhow::Error) - Next
OrPending
Functions§
- get_
average - Computes the average of the given
u64slice. - get_
median - Computes the median from a slice of sorted
u64s - handle_
version_ hash_ command - For CLIs, detects
version-hashas a single argument, prints the provided version hash, then exits the process. - retry
- Run the supplied closure
op_fnuntil it succeeds. Frequency and number of retries is determined by the specified strategy. - write_
new - Write out a new file (like
std::fs::writebut fails if file already exists) - write_
new_ async - write_
overwrite - write_
overwrite_ async