Expand description
General purpose utilities
Re-exports§
pub use backon;
Modules§
- Copied from
tokio_stream
0.1.12 to use our optional Send bounds
Structs§
- Wrapper for
Url
that only prints the scheme, domain, port and path portion of aUrl
in itsDisplay
implementation. This is useful to hide private information like user names and passwords in logs or UIs.
Traits§
Functions§
- For CLIs, detects
version-hash
as a single argument, prints the provided version hash, then exits the process. - Run the supplied closure
op_fn
until it succeeds. Frequency and number of retries is determined by the specified strategy. - Write out a new file (like
std::fs::write
but fails if file already exists)
Type Aliases§
- Future that is
Send
unless targeting WASM - Stream that is
Send
unless targeting WASM