Skip to main content

Module status

Module status 

Source
Expand description

Background printer-state-reasons poller.

A single tokio task per server walks the printer registry every poll interval (default 30 s, override with IPP_PRINTER_APP_POLL_SECS) and asks the backend for fresh status. Backends that don’t override DeviceBackend::poll_status return None and leave the registry untouched.

Functions§

spawn
Spawn the polling task. Returns immediately. Drop the returned tokio::task::JoinHandle to abort the loop on server shutdown.