pub struct WinPdfPrinter { /* private fields */ }Expand description
A printer that uses Windows.Data.Pdf to to print PDF documents.
Implementations§
Source§impl WinPdfPrinter
impl WinPdfPrinter
Sourcepub fn new(printer: PrinterDevice) -> Self
pub fn new(printer: PrinterDevice) -> Self
Create a new WinPdfPrinter for the given printer device.
Trait Implementations§
Source§impl FilePrinter for WinPdfPrinter
impl FilePrinter for WinPdfPrinter
Source§type Options = PrintTicket
type Options = PrintTicket
The options type for the printer.
Source§type Error = WinPdfPrinterError
type Error = WinPdfPrinterError
The error type for the printer.
Source§fn print(
&self,
path: &Path,
options: PrintTicket,
) -> Result<(), WinPdfPrinterError>
fn print( &self, path: &Path, options: PrintTicket, ) -> Result<(), WinPdfPrinterError>
Print the file with the given options.
Auto Trait Implementations§
impl Freeze for WinPdfPrinter
impl RefUnwindSafe for WinPdfPrinter
impl Send for WinPdfPrinter
impl Sync for WinPdfPrinter
impl Unpin for WinPdfPrinter
impl UnsafeUnpin for WinPdfPrinter
impl UnwindSafe for WinPdfPrinter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more