UartDmaRx

Struct UartDmaRx 

Source
pub struct UartDmaRx<U, CH, W> { /* private fields */ }

Implementations§

Source§

impl<U, CH, W> UartDmaRx<U, CH, W>
where U: UartPeriph, CH: DmaChannel, W: Waiter,

Source

pub fn new(uart: U, dma_ch: CH, buf_size: usize, timeout: W) -> Self

Trait Implementations§

Source§

impl<U, CH, W> ErrorType for UartDmaRx<U, CH, W>
where U: UartPeriph, CH: DmaChannel, W: Waiter,

Source§

type Error = Error

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

impl<U, CH, W> Read for UartDmaRx<U, CH, W>
where U: UartPeriph, CH: DmaChannel, W: Waiter,

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, W> Freeze for UartDmaRx<U, CH, W>
where U: Freeze, W: Freeze, CH: Freeze,

§

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

§

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

§

impl<U, CH, W> Sync for UartDmaRx<U, CH, W>
where U: Sync, W: Sync, CH: Sync,

§

impl<U, CH, W> Unpin for UartDmaRx<U, CH, W>
where U: Unpin, W: Unpin, CH: Unpin,

§

impl<U, CH, W> UnwindSafe for UartDmaRx<U, CH, W>
where U: UnwindSafe, W: UnwindSafe, CH: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, const R: u8> RFrom<T, R> for T

Source§

fn rfrom(value: T) -> T

Source§

impl<S, T, const R: u8> RInto<T, R> for S
where T: RFrom<S, R>,

Source§

fn rinto(self) -> T

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.