UartPollRx

Struct UartPollRx 

Source
pub struct UartPollRx<U, OS> { /* private fields */ }

Implementations§

Source§

impl<U: UartPeriph, OS: OsInterface> UartPollRx<U, OS>

Source

pub fn new(uart: U, baudrate: u32, timeout: MicrosDurationU32) -> Self

Trait Implementations§

Source§

impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>

Source§

type Error = Error

Error type
Source§

impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>

Source§

type Error = Error

Error type of all the IO operations on this type.
Source§

impl<U: UartPeriph, OS: OsInterface> Read<u16> for UartPollRx<U, OS>

Source§

fn read(&mut self) -> Result<u16, Self::Error>

Reads a single word from the serial interface
Source§

impl<U: UartPeriph, OS: OsInterface> Read for UartPollRx<U, OS>

Source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>

Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§

fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>

Read the exact number of bytes required to fill buf. Read more

Auto Trait Implementations§

§

impl<U, OS> Freeze for UartPollRx<U, OS>
where U: Freeze,

§

impl<U, OS> RefUnwindSafe for UartPollRx<U, OS>

§

impl<U, OS> Send for UartPollRx<U, OS>
where U: Send, OS: Send,

§

impl<U, OS> Sync for UartPollRx<U, OS>
where U: Sync, OS: Sync,

§

impl<U, OS> Unpin for UartPollRx<U, OS>
where U: Unpin, OS: Unpin,

§

impl<U, OS> UnwindSafe for UartPollRx<U, OS>
where U: UnwindSafe, OS: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.