Struct radio::mock::Transaction[][src]

pub struct Transaction<St, Reg, Ch, Inf, Irq, E> { /* fields omitted */ }

Transactions describe interactions with a radio device

Implementations

impl<St, Reg, Ch, Inf, Irq, E> Transaction<St, Reg, Ch, Inf, Irq, E>[src]

pub fn set_state(state: St, err: Option<E>) -> Self[src]

Set the radio state

pub fn get_state(res: Result<St, E>) -> Self[src]

Get the radio state

pub fn is_busy(res: Result<bool, E>) -> Self[src]

Check whether radio is currently busy

pub fn set_register(reg: Reg, value: u8, err: Option<E>) -> Self[src]

Set a radio register

pub fn get_register(res: Result<u8, E>) -> Self[src]

Get a radio register

pub fn set_channel(ch: Ch, err: Option<E>) -> Self[src]

Set a radio channel

pub fn set_power(power: i8, err: Option<E>) -> Self[src]

Set radio power

pub fn start_transmit(data: Vec<u8>, err: Option<E>) -> Self[src]

Start radio transmission

pub fn check_transmit(res: Result<bool, E>) -> Self[src]

Check for transmission completed

pub fn start_receive(err: Option<E>) -> Self[src]

Start radio reception

pub fn check_receive(restart: bool, res: Result<bool, E>) -> Self[src]

Check for radio reception

pub fn get_received(res: Result<(Vec<u8>, Inf), E>) -> Self[src]

Fetch received data and information

pub fn get_irq(clear: bool, res: Result<Irq, E>) -> Self[src]

Fetch radio IRQs

pub fn poll_rssi(res: Result<i16, E>) -> Self[src]

Poll for RSSI

pub fn delay_us(ms: u32) -> Self[src]

Delay for a certain time

Trait Implementations

impl<St: Clone, Reg: Clone, Ch: Clone, Inf: Clone, Irq: Clone, E: Clone> Clone for Transaction<St, Reg, Ch, Inf, Irq, E>[src]

impl<St: Debug, Reg: Debug, Ch: Debug, Inf: Debug, Irq: Debug, E: Debug> Debug for Transaction<St, Reg, Ch, Inf, Irq, E>[src]

impl<St: PartialEq, Reg: PartialEq, Ch: PartialEq, Inf: PartialEq, Irq: PartialEq, E: PartialEq> PartialEq<Transaction<St, Reg, Ch, Inf, Irq, E>> for Transaction<St, Reg, Ch, Inf, Irq, E>[src]

impl<St, Reg, Ch, Inf, Irq, E> StructuralPartialEq for Transaction<St, Reg, Ch, Inf, Irq, E>[src]

Auto Trait Implementations

impl<St, Reg, Ch, Inf, Irq, E> RefUnwindSafe for Transaction<St, Reg, Ch, Inf, Irq, E> where
    Ch: RefUnwindSafe,
    E: RefUnwindSafe,
    Inf: RefUnwindSafe,
    Irq: RefUnwindSafe,
    Reg: RefUnwindSafe,
    St: RefUnwindSafe

impl<St, Reg, Ch, Inf, Irq, E> Send for Transaction<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 Transaction<St, Reg, Ch, Inf, Irq, E> where
    Ch: Sync,
    E: Sync,
    Inf: Sync,
    Irq: Sync,
    Reg: Sync,
    St: Sync

impl<St, Reg, Ch, Inf, Irq, E> Unpin for Transaction<St, Reg, Ch, Inf, Irq, E> where
    Ch: Unpin,
    E: Unpin,
    Inf: Unpin,
    Irq: Unpin,
    Reg: Unpin,
    St: Unpin

impl<St, Reg, Ch, Inf, Irq, E> UnwindSafe for Transaction<St, Reg, Ch, Inf, Irq, E> where
    Ch: UnwindSafe,
    E: UnwindSafe,
    Inf: UnwindSafe,
    Irq: UnwindSafe,
    Reg: UnwindSafe,
    St: UnwindSafe

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> 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.