Skip to main content

FilePrinterProvider

Trait FilePrinterProvider 

Source
pub trait FilePrinterProvider {
    // Required method
    fn driver_name() -> &'static str;
}
Expand description

Defines a virtual “print-to-file” device backed by a built-in Windows driver.

Implement this trait to expose additional file-based drivers. Two built-in providers are shipped: PwgRaster and Pdf.

Required Methods§

Source

fn driver_name() -> &'static str

Returns the Windows driver name (as accepted by Add-Printer -DriverName) to use for the virtual printer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§