[][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> Serial<TX, RX, Timer> where
    TX: OutputPin,
    RX: InputPin,
    Timer: CountDown + Periodic
[src]

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

Trait Implementations

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

type Error = ()

Read error

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

type Error = ()

Write error

Auto Trait Implementations

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

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

Blanket Implementations

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> From<T> for 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]