[][src]Struct cntrlr::hw::board::red_v::io::Serial

pub struct Serial<T, R, const N: usize>(_, _);
This is supported on board="red_v" only.

A serial interface

This wraps a UART and provides application-level functionality.

Trait Implementations

impl<T, R, const N: usize> Read for Serial<T, R, N> where
    T: 'static,
    R: UartRx<Fe310G002, N> + 'static, 
[src]

type Error = SerialError

The error type

type Future = impl Future<Output = Result<usize, Self::Error>>

The future for Self::read()

impl Serial for Serial<Serial1Tx, Serial1Rx, 0>[src]

type Error = SerialError

The error type

impl Serial for Serial<Serial2Tx, Serial2Rx, 1>[src]

type Error = SerialError

The error type

impl<T, R, const N: usize> Write for Serial<T, R, N> where
    T: UartTx<Fe310G002, N> + 'static,
    R: 'static, 
[src]

type Error = SerialError

The error type

type Future = impl Future<Output = Result<usize, Self::Error>>

The future for Self::write()

type FlushFuture = impl Future<Output = Result<(), Self::Error>>

The future for Self::flush()

Auto Trait Implementations

impl<T, R, const N: usize> Send for Serial<T, R, N> where
    R: Send,
    T: Send
[src]

impl<T, R, const N: usize> !Sync for Serial<T, R, N>[src]

impl<T, R, const N: usize> Unpin for Serial<T, R, N> where
    R: Unpin,
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReadExt for T where
    T: 'static + Read
[src]

type ExactFuture = impl Future<Output = Result<(), <T as Read>::Error>> + 'a

The future for Self::read_exact()

type LineFuture = impl Future<Output = Result<(), LineError<<T as Read>::Error>>> + 'a

The future for Self::read_line()

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WriteExt for T where
    T: 'static + Write
[src]

type AllFuture = impl Future<Output = Result<(), <T as Write>::Error>> + 'a

The future for Self::write_all()

type FmtFuture = impl Future<Output = Result<(), <T as Write>::Error>> + 'a

The future for Self::write_fmt()