[][src]Struct bitbang_hal::serial::Serial

pub struct Serial<TX, RX, Timer> where
    TX: OutputPin,
    RX: InputPin,
    Timer: CountDown + Periodic
{ /* fields omitted */ }

Methods

impl<TX, RX, Timer, E> Serial<TX, RX, Timer> where
    TX: OutputPin<Error = E>,
    RX: InputPin<Error = E>,
    Timer: CountDown + Periodic
[src]

pub fn new(tx: TX, rx: RX, timer: Timer) -> Self[src]

Trait Implementations

impl<TX, RX, Timer, E> Write<u8> for Serial<TX, RX, Timer> where
    TX: OutputPin<Error = E>,
    RX: InputPin<Error = E>,
    Timer: CountDown + Periodic
[src]

type Error = Error<E>

Write error

impl<TX, RX, Timer, E> Read<u8> for Serial<TX, RX, Timer> where
    TX: OutputPin<Error = E>,
    RX: InputPin<Error = E>,
    Timer: CountDown + Periodic
[src]

type Error = Error<E>

Read error

Auto Trait Implementations

impl<TX, RX, Timer> Unpin for Serial<TX, RX, Timer> where
    RX: Unpin,
    TX: Unpin,
    Timer: Unpin

impl<TX, RX, Timer> Send for Serial<TX, RX, Timer> where
    RX: Send,
    TX: Send,
    Timer: Send

impl<TX, RX, Timer> Sync for Serial<TX, RX, Timer> where
    RX: Sync,
    TX: Sync,
    Timer: Sync

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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