zb: add Connection::monitor_activity()
This new method allows caller to sleep and wake up on connection activity. This is mostly meant to implement timeout on inactivity for services, ex:
loop {
if !connection.monitor_activity().wait_timeout(Duration::from_secs(10)) {
break;
}
}
Edited by Marc-André Lureau