Skip to main content

read_status

Function read_status 

Source
pub fn read_status(home: &Path) -> Option<Reading>
Expand description

Read <home>/daemon.json permissively, or None when there is nothing usable there.

Missing, half-written and unparseable all collapse to None, because the only question a reader asks is whether a daemon is alive, and a file it cannot read is not evidence that one is.