Function gtk4::enumerate_printers

source ·
pub fn enumerate_printers<P: Fn(&Printer) -> bool + Send + Sync + 'static>(
    func: P,
    wait: bool
)
Available 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