UartDmaRx

Struct UartDmaRx 

Source
pub struct UartDmaRx<U, CH, OS: OsInterface> { /* private fields */ }

Implementations§

Source§

impl<U, CH, OS> UartDmaRx<U, CH, OS>

Source

pub fn new( uart: U, dma_ch: CH, buf_size: usize, timeout: MicrosDurationU32, ) -> (Self, UartDmaRxNotify<CH, OS>)

Trait Implementations§

Source§

impl<U, CH, OS> ErrorType for UartDmaRx<U, CH, OS>
where OS: OsInterface,

Source§

type Error = Error

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

impl<U, CH, OS> Read for UartDmaRx<U, CH, OS>
where CH: DmaChannel, OS: OsInterface,

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, CH, OS> Freeze for UartDmaRx<U, CH, OS>
where U: Freeze, <OS as OsInterface>::NotifyWaiter: Freeze, CH: Freeze,

§

impl<U, CH, OS> RefUnwindSafe for UartDmaRx<U, CH, OS>

§

impl<U, CH, OS> Send for UartDmaRx<U, CH, OS>
where U: Send, CH: Send,

§

impl<U, CH, OS> Sync for UartDmaRx<U, CH, OS>
where U: Sync, <OS as OsInterface>::NotifyWaiter: Sync, CH: Sync,

§

impl<U, CH, OS> Unpin for UartDmaRx<U, CH, OS>
where U: Unpin, <OS as OsInterface>::NotifyWaiter: Unpin, CH: Unpin,

§

impl<U, CH, OS> UnwindSafe for UartDmaRx<U, CH, OS>

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.