Skip to main content

BACKEND_INACTIVITY_TIMEOUT

Constant BACKEND_INACTIVITY_TIMEOUT 

Source
pub const BACKEND_INACTIVITY_TIMEOUT: Duration;
Available on crate feature zbus-backend only.
Expand description

The inactivity window after which a CPDB backend process auto-exits.

Backends terminate themselves after this long with no D-Bus activity. Users of CpdbClient::discovery_stream don’t need to think about this — the returned stream spawns a keep-alive task that pings at BACKEND_INACTIVITY_TIMEOUT / 3. Exposed for callers that drive their own keep-alive loops (see the discover_printers example).