pub fn enumerate_printers<P: Fn(&Printer) -> bool + Send + Sync + 'static>(
    func: P,
    wait: bool
)
This is supported on Linux only.
Expand description

Calls a function for all Printers.

If @func returns true, the enumeration is stopped.

func

a function to call for each printer

wait

if true, wait in a recursive mainloop until all printers are enumerated; otherwise return early