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_read(&self, buf: &mut [u8], _timeout: Duration) -> Result<usize>
fn console_read(&self, buf: &mut [u8], _timeout: Duration) -> 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).
fn set_break(&self, _enable: bool) -> Result<()>
Source§fn supports_nonblocking_read(&self) -> Result<bool>
fn supports_nonblocking_read(&self) -> Result<bool>
Query if nonblocking mio mode is supported.
Source§fn register_nonblocking_read(
&self,
_registry: &Registry,
_token: Token,
) -> Result<()>
fn register_nonblocking_read( &self, _registry: &Registry, _token: Token, ) -> Result<()>
Switch this
Uart
instance into nonblocking mio mode. Going
forward, read()
should only be called after mio::poll()
has
indicated that the given Token
is ready.Source§fn nonblocking_help(&self) -> Result<Rc<dyn NonblockingHelp>>
fn nonblocking_help(&self) -> Result<Rc<dyn NonblockingHelp>>
Get the same single
NonblockingHelp
object as from top level
Transport.nonblocking_help()
.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