Function gtk4::enumerate_printers[][src]

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.


a function to call for each printer


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