pub struct Serial<USART, TXPIN, RXPIN> { /* private fields */ }
Expand description
Serial abstraction
Implementations§
Source§impl<USART, TXPIN, RXPIN> Serial<USART, TXPIN, RXPIN>where
USART: Deref<Target = RegisterBlock>,
impl<USART, TXPIN, RXPIN> Serial<USART, TXPIN, RXPIN>where
USART: Deref<Target = RegisterBlock>,
Trait Implementations§
Source§impl<USART, TXPIN, RXPIN> Write for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> Write for Serial<USART, TXPIN, RXPIN>
Source§impl<USART, TXPIN, RXPIN> Write<u8> for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> Write<u8> for Serial<USART, TXPIN, RXPIN>
Source§fn flush(
&mut self,
) -> Result<(), Error<<Serial<USART, TXPIN, RXPIN> as Write<u8>>::Error>>
fn flush( &mut self, ) -> Result<(), Error<<Serial<USART, TXPIN, RXPIN> as Write<u8>>::Error>>
Ensures that none of the previously written words are still buffered
Auto Trait Implementations§
impl<USART, TXPIN, RXPIN> Freeze for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> RefUnwindSafe for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> Send for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> Sync for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> Unpin for Serial<USART, TXPIN, RXPIN>
impl<USART, TXPIN, RXPIN> UnwindSafe for Serial<USART, TXPIN, RXPIN>
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