pub struct PrinterReader<'d, D: Driver<'d>> { /* private fields */ }Expand description
Printer reader half (receives print data from host).
Implementations§
Source§impl<'d, D: Driver<'d>> PrinterReader<'d, D>
impl<'d, D: Driver<'d>> PrinterReader<'d, D>
Trait Implementations§
Source§impl<'d, D: Driver<'d>> ErrorType for PrinterReader<'d, D>
Available on crate feature embedded-io only.
impl<'d, D: Driver<'d>> ErrorType for PrinterReader<'d, D>
Available on crate feature
embedded-io only.Source§type Error = PrinterError
type Error = PrinterError
Error type of all the IO operations on this type.
Source§impl<'d, D: Driver<'d>> Read for PrinterReader<'d, D>
Available on crate feature embedded-io only.
impl<'d, D: Driver<'d>> Read for PrinterReader<'d, D>
Available on crate feature
embedded-io only.Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreAuto Trait Implementations§
impl<'d, D> Forget for PrinterReader<'d, D>
impl<'d, D> Freeze for PrinterReader<'d, D>
impl<'d, D> Move for PrinterReader<'d, D>
impl<'d, D> RefUnwindSafe for PrinterReader<'d, D>
impl<'d, D> Send for PrinterReader<'d, D>
impl<'d, D> Sync for PrinterReader<'d, D>
impl<'d, D> Unpin for PrinterReader<'d, D>
impl<'d, D> UnsafeUnpin for PrinterReader<'d, D>
impl<'d, D> UnwindSafe for PrinterReader<'d, D>
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