Skip to main content

watch

Function watch 

Source
pub fn watch(root: &Path, render: impl FnMut(&[u8])) -> Result<()>
Expand description

Subscribe to the daemon’s live status (spawning it if needed), invoking render with each status frame as it arrives, until the daemon closes the stream (or the process is interrupted).