Module utils

Module utils 

Source

Structs§

Monitor
A monitoring abstraction which will periodically call reader when iterated.

Functions§

file_to_f32
Parse a string as a float32.
monitor_command
Monitor a given command. When iterated it is periodically executed and its stdout is returned.
monitor_file
Monitor a file at a given path. When iterated it’s contents are periodically read. NB the file should already have been verified to exist at this point, so we should safe to expect that it still does.
str_to_f32
Parse a string as a float32.
wait_for_signal
Wait for a signal to occur with a given timeout. Sends a message through the returned receiver when the signal/timeout occurs.