pub struct PrinterHandle<'a> {
pub record: &'a PrinterRecord,
}Expand description
Borrowed view of a printer passed into crate::RasterDriver callbacks.
record is exposed for direct access; the helpers below are the
commonly-needed shortcuts.
Fields§
§record: &'a PrinterRecordThe underlying registry entry.
Implementations§
Source§impl<'a> PrinterHandle<'a>
impl<'a> PrinterHandle<'a>
Sourcepub fn driver_name(&self) -> &str
pub fn driver_name(&self) -> &str
Driver name from the config (matches the value supplied by
crate::DeviceBackend::driver_for_device).
Sourcepub fn printhead_width_dots(&self) -> u32
pub fn printhead_width_dots(&self) -> u32
Printhead width in dots.
Auto Trait Implementations§
impl<'a> Freeze for PrinterHandle<'a>
impl<'a> RefUnwindSafe for PrinterHandle<'a>
impl<'a> Send for PrinterHandle<'a>
impl<'a> Sync for PrinterHandle<'a>
impl<'a> Unpin for PrinterHandle<'a>
impl<'a> UnsafeUnpin for PrinterHandle<'a>
impl<'a> UnwindSafe for PrinterHandle<'a>
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