pub struct UartPanicWriter<'a> { /* private fields */ }Expand description
A synchronous writer for the QEMU RV32 useful for panics.
For boards that want to use the UART to display panic messages, this
provides an implementation of
PanicWriter with synchronous
output.
This is only to be used by panic messages and is not used within the normal operation of the Tock kernel.
TODO: Validate this UartPanicWriter is always sound to create.
Trait Implementations§
Source§impl IoWrite for UartPanicWriter<'_>
impl IoWrite for UartPanicWriter<'_>
Source§impl PanicWriter for UartPanicWriter<'_>
impl PanicWriter for UartPanicWriter<'_>
Source§type Config = UartPanicWriterConfig
type Config = UartPanicWriterConfig
The configuration data the mechanism needs to configure the writer for
panic output.
Source§unsafe fn create_panic_writer(config: Self::Config) -> impl IoWrite + Write
unsafe fn create_panic_writer(config: Self::Config) -> impl IoWrite + Write
Create a new synchronous writer capable of sending panic messages. Read more
Auto Trait Implementations§
impl<'a> !Freeze for UartPanicWriter<'a>
impl<'a> !RefUnwindSafe for UartPanicWriter<'a>
impl<'a> !Send for UartPanicWriter<'a>
impl<'a> !Sync for UartPanicWriter<'a>
impl<'a> !UnwindSafe for UartPanicWriter<'a>
impl<'a> Unpin for UartPanicWriter<'a>
impl<'a> UnsafeUnpin for UartPanicWriter<'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