winprint 0.2.0

A crate for printing to a Windows printer device using Windows API
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::Path;

/// A trait representing a printer that can print files.
pub trait FilePrinter {
    /// The options type for the printer.
    type Options;
    /// The error type for the printer.
    type Error;
    /// Print the file with the given options.
    fn print(&self, path: &Path, options: Self::Options) -> std::result::Result<(), Self::Error>;
}