Expand description
Assorted helper utilities for the service binaries.
Structs§
- Markdown
- A reader over a Markdown document, used to extract embedded code blocks.
Statics§
- DEFAULT_
PAUSE_ AFTER_ GQL_ MUTATIONS_ SECS - Default pause, in seconds, inserted after GraphQL mutations in readme e2e tests.
- DEFAULT_
PAUSE_ AFTER_ LINERA_ SERVICE_ SECS - Default pause, in seconds, inserted after
linera servicecommands in readme e2e tests.
Traits§
- Child
Ext - Extension trait for
tokio::process::Child.
Functions§
- eventually
- Checks the condition five times with increasing delays. Returns
trueif it is met. - 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_
ascii_ alphanumeric_ string - Validates that a string contains only ASCII alphanumeric characters, returning it unchanged.
- 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 a string of milliseconds into a
Duration. - parse_
millis_ delta - Parses a string of milliseconds into a
TimeDelta. - parse_
secs - Parses the string as a number of seconds into a
Duration. - read_
json - Reads and deserializes a JSON value from the file at the given path.
- wait_
for_ next_ round - Returns after the specified time or if we receive a notification that a new round has started.