Expand description
Assorted parsing and command-line helper utilities.
Functionsยง
- non_
zero_ duration - Converts a
DurationtoOption<Duration>, treating zero asNone. - parse_
app_ set - Parses a comma-separated list of application IDs into a set.
- parse_
chain_ set - Parses a comma-separated list of chain IDs into a set.
- parse_
json - Parses the trimmed string as JSON into a value of type
T. - parse_
json_ optional_ millis_ delta - Parses the JSON string as an optional number of milliseconds into an
Option<TimeDelta>. - parse_
millis - Parses the string as a number of milliseconds into a
Duration. - parse_
millis_ delta - Parses the string as a number of milliseconds into a
TimeDelta. - parse_
secs - Parses the string as a number of seconds into a
Duration. - wait_
for_ next_ round - Returns after the specified time or if we receive a notification that a new round has started.