pub struct ProcessPrinterContext {
pub offset: usize,
}
Expand description
A context token that the caller must pass back to us. This allows us to track where we are in the print operation.
Fields§
§offset: usize
The overall print message is broken in to chunks so that it can be fit in a small buffer that is called multiple times. This tracks which byte we are at so we can ignore the text before and print the next bytes.
Trait Implementations§
Source§impl Clone for ProcessPrinterContext
impl Clone for ProcessPrinterContext
Source§fn clone(&self) -> ProcessPrinterContext
fn clone(&self) -> ProcessPrinterContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for ProcessPrinterContext
impl PartialEq for ProcessPrinterContext
impl Copy for ProcessPrinterContext
impl Eq for ProcessPrinterContext
impl StructuralPartialEq for ProcessPrinterContext
Auto Trait Implementations§
impl Freeze for ProcessPrinterContext
impl RefUnwindSafe for ProcessPrinterContext
impl Send for ProcessPrinterContext
impl Sync for ProcessPrinterContext
impl Unpin for ProcessPrinterContext
impl UnwindSafe for ProcessPrinterContext
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