Module spirit::utils[][src]

Expand description

Various utilities.

All the little things that are useful through the spirit’s or user’s code, and don’t really fit anywhere else.

Structs

A wrapper to hide a configuration field from logs.

An error returned when the user passes a key-value option without the equal sign.

Functions

Tries to read an absolute path from the given OS string.

Deserialize a human-readable duration.

Deserialize an Option<Duration> using the humantime crate.

Checks if value is default.

Checks if value is set to true.

A helper for deserializing map-like command line arguments.

Serialize a duration.

Serialize an Option<Duration> in a human friendly form.

Installs a stage-shutdown handling.