Skip to main content

watch_with

Function watch_with 

Source
fn watch_with(
    control: &Control,
    every: Duration,
    sync: impl FnMut() -> Result<Report, SyncError>,
    password: impl Fn() -> Option<String>,
    report: impl FnMut(Result<Report, SyncError>),
)
Expand description

watch, syncing with sync; password reads the one kept now.