Expand description
General purpose utilities
Modules§
- backoff_
util - broadcaststream
- Copied from
tokio_stream
0.1.12 to use our optional Send bounds - error 🔒
- update_
merge
Structs§
- FmtCompact
Error Anyhow - A wrapper with
fmt::Display
foranyhow::Error
that will print chain of causes - FmtError
Compact - A wrapper with
fmt::Display
for anyE : Error
that will print chain of causes - SafeUrl
- Wrapper for
Url
that only prints the scheme, domain, port and path portion of aUrl
in itsDisplay
implementation. - Spanned
Enums§
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
u64
slice. - get_
median - Computes the median from a slice of sorted
u64
s - handle_
version_ hash_ command - For CLIs, detects
version-hash
as a single argument, prints the provided version hash, then exits the process. - retry
- Run the supplied closure
op_fn
until it succeeds. Frequency and number of retries is determined by the specified strategy. - write_
new - Write out a new file (like
std::fs::write
but fails if file already exists) - write_
new_ async - write_
overwrite - write_
overwrite_ async