pub struct SpiConsoleDevice<'a> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a> ConsoleDevice for SpiConsoleDevice<'a>
impl<'a> ConsoleDevice for SpiConsoleDevice<'a>
Source§fn console_poll_read(
&self,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize>>
fn console_poll_read( &self, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize>>
Reads data from the UART to print to the console (used when this UART is the console device).
Source§fn console_write(&self, buf: &[u8]) -> Result<()>
fn console_write(&self, buf: &[u8]) -> Result<()>
Writes console input data to the UART (used when this UART is the console device).
Source§fn get_tx_ready_pin(&self) -> Result<Option<&'a Rc<dyn GpioPin>>>
fn get_tx_ready_pin(&self) -> Result<Option<&'a Rc<dyn GpioPin>>>
Query if TX-ready pin non-polling mode is supported.
fn set_break(&self, _enable: bool) -> Result<()>
Auto Trait Implementations§
impl<'a> !Freeze for SpiConsoleDevice<'a>
impl<'a> !RefUnwindSafe for SpiConsoleDevice<'a>
impl<'a> !Send for SpiConsoleDevice<'a>
impl<'a> !Sync for SpiConsoleDevice<'a>
impl<'a> Unpin for SpiConsoleDevice<'a>
impl<'a> !UnwindSafe for SpiConsoleDevice<'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