Struct winprint::printer::XpsPrinter
source · pub struct XpsPrinter { /* private fields */ }
Expand description
A printer to print XPS documents.
Implementations§
source§impl XpsPrinter
impl XpsPrinter
sourcepub fn new(printer: PrinterDevice) -> Self
pub fn new(printer: PrinterDevice) -> Self
Create a new XpsPrinter
for the given printer device.
Trait Implementations§
source§impl FilePrinter for XpsPrinter
impl FilePrinter for XpsPrinter
§type Options = PrintTicket
type Options = PrintTicket
The options type for the printer.
§type Error = XpsPrinterError
type Error = XpsPrinterError
The error type for the printer.
source§fn print(
&self,
path: &Path,
options: PrintTicket
) -> Result<(), XpsPrinterError>
fn print( &self, path: &Path, options: PrintTicket ) -> Result<(), XpsPrinterError>
Print the file with the given options.
Auto Trait Implementations§
impl Freeze for XpsPrinter
impl RefUnwindSafe for XpsPrinter
impl Send for XpsPrinter
impl Sync for XpsPrinter
impl Unpin for XpsPrinter
impl UnwindSafe for XpsPrinter
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