pub struct DebugWriter { /* private fields */ }
Expand description
Main type that we share with the UART provider and this debug module.
Implementations§
Source§impl DebugWriter
impl DebugWriter
pub fn new( uart: &'static dyn Transmit<'_>, out_buffer: &'static mut [u8], internal_buffer: &'static mut RingBuffer<'static, u8>, ) -> DebugWriter
Trait Implementations§
Source§impl TransmitClient for DebugWriter
impl TransmitClient for DebugWriter
Source§fn transmitted_buffer(
&self,
buffer: &'static mut [u8],
_tx_len: usize,
_rcode: Result<(), ErrorCode>,
)
fn transmitted_buffer( &self, buffer: &'static mut [u8], _tx_len: usize, _rcode: Result<(), ErrorCode>, )
A call to
Transmit::transmit_buffer
completed. Read moreSource§fn transmitted_word(&self, _rcode: Result<(), ErrorCode>)
fn transmitted_word(&self, _rcode: Result<(), ErrorCode>)
A call to
Transmit::transmit_word
completed. Read moreAuto Trait Implementations§
impl !Freeze for DebugWriter
impl !RefUnwindSafe for DebugWriter
impl !Send for DebugWriter
impl !Sync for DebugWriter
impl Unpin for DebugWriter
impl !UnwindSafe for DebugWriter
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