[][src]Struct radio::mock::Radio

pub struct Radio<St: Debug + Clone + PartialEq, Reg: Debug + Clone + PartialEq, Ch: Debug + Clone + PartialEq, Inf: Debug + Clone + PartialEq, Irq: Debug + Clone + PartialEq, E: Debug + Clone + PartialEq> { /* fields omitted */ }

Generic mock radio

Based on embedded_hal_mock::common::Generic

Methods

impl<St, Reg, Ch, Inf, Irq, E> Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

pub fn new(expectations: &[Transaction<St, Reg, Ch, Inf, Irq, E>]) -> Self[src]

pub fn next(&mut self) -> Option<Transaction<St, Reg, Ch, Inf, Irq, E>>[src]

pub fn done(&mut self)[src]

Trait Implementations

impl<St, Reg, Ch, Inf, Irq, E> Channel for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Channel = Ch

Channel information

type Error = E

Radio error type

impl<St: Clone + Debug + PartialEq, Reg: Clone + Debug + PartialEq, Ch: Clone + Debug + PartialEq, Inf: Clone + Debug + PartialEq, Irq: Clone + Debug + PartialEq, E: Clone + Debug + PartialEq> Clone for Radio<St, Reg, Ch, Inf, Irq, E>[src]

impl<St: Debug + Clone + PartialEq, Reg: Debug + Clone + PartialEq, Ch: Debug + Clone + PartialEq, Inf: Debug + Clone + PartialEq, Irq: Debug + Clone + PartialEq, E: Debug + Clone + PartialEq> Debug for Radio<St, Reg, Ch, Inf, Irq, E>[src]

impl<St, Reg, Ch, Inf, Irq, E> DelayMs<u32> for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

impl<St, Reg, Ch, Inf, Irq, E> Interrupts for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Error = E

Radio error

type Irq = Irq

Interrupt object

impl<St, Reg, Ch, Inf, Irq, E> Power for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Error = E

Radio error type

impl<St, Reg, Ch, Inf, Irq, E> Receive for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Info = Inf

Packet received info

type Error = E

Radio error

impl<St, Reg, Ch, Inf, Irq, E> State for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type State = St

Channel information

type Error = E

Radio error type

impl<St, Reg, Ch, Inf, Irq, E> Transmit for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Error = E

Radio error

Auto Trait Implementations

impl<St, Reg, Ch, Inf, Irq, E> RefUnwindSafe for Radio<St, Reg, Ch, Inf, Irq, E>

impl<St, Reg, Ch, Inf, Irq, E> Send for Radio<St, Reg, Ch, Inf, Irq, E> where
    Ch: Send,
    E: Send,
    Inf: Send,
    Irq: Send,
    Reg: Send,
    St: Send

impl<St, Reg, Ch, Inf, Irq, E> Sync for Radio<St, Reg, Ch, Inf, Irq, E> where
    Ch: Send,
    E: Send,
    Inf: Send,
    Irq: Send,
    Reg: Send,
    St: Send

impl<St, Reg, Ch, Inf, Irq, E> Unpin for Radio<St, Reg, Ch, Inf, Irq, E>

impl<St, Reg, Ch, Inf, Irq, E> UnwindSafe for Radio<St, Reg, Ch, Inf, Irq, E>

Blanket Implementations

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

impl<T, I, E> AsyncReceive<I, E> for T where
    E: Debug + Send + Unpin,
    I: Debug + Send,
    T: Receive<Error = E, Info = I> + Send
[src]

impl<T, E> AsyncTransmit<E> for T where
    E: Debug + Send + Unpin,
    T: Transmit<Error = E> + Power<Error = E> + Send
[src]

impl<T, I, E> BlockingReceive<I, E> for T where
    E: Debug,
    I: Debug,
    T: Receive<Info = I, Error = E> + DelayMs<u32>, 
[src]

impl<T, S, E> BlockingSetState<S, E> for T where
    E: Debug,
    S: Debug + PartialEq<S> + Copy,
    T: State<State = S, Error = E> + DelayMs<u32>, 
[src]

impl<T, E> BlockingTransmit<E> for T where
    E: Debug,
    T: Transmit<Error = E> + Power<Error = E> + DelayMs<u32>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.