Struct kernel::process::ProcessPrinterContext
source · 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
source§fn eq(&self, other: &ProcessPrinterContext) -> bool
fn eq(&self, other: &ProcessPrinterContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)