[−][src]Struct radio::mock::Radio
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
type Channel = Ch
Channel information
type Error = E
Radio error type
fn set_channel(&mut self, channel: &Self::Channel) -> Result<(), Self::Error>
[src]
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]
fn clone(&self) -> Radio<St, Reg, Ch, Inf, Irq, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
type Error = E
Radio error
type Irq = Irq
Interrupt object
fn get_interrupts(&mut self, clear: bool) -> Result<Self::Irq, Self::Error>
[src]
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
type Info = Inf
Packet received info
type Error = E
Radio error
fn start_receive(&mut self) -> Result<(), Self::Error>
[src]
fn check_receive(&mut self, restart: bool) -> Result<bool, Self::Error>
[src]
fn get_received(
&mut self,
info: &mut Self::Info,
buff: &mut [u8]
) -> Result<usize, Self::Error>
[src]
&mut self,
info: &mut Self::Info,
buff: &mut [u8]
) -> Result<usize, Self::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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
type State = St
Channel information
type Error = E
Radio error type
fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>
[src]
fn get_state(&mut self) -> Result<Self::State, Self::Error>
[src]
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]
St: PartialEq + Debug + Clone,
Reg: PartialEq + Debug + Clone,
Ch: PartialEq + Debug + Clone,
Inf: PartialEq + Debug + Clone,
Irq: PartialEq + Debug + Clone,
E: PartialEq + Debug + Clone,
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,
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,
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]
T: 'static + ?Sized,
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]
E: Debug + Send + Unpin,
I: Debug + Send,
T: Receive<Error = E, Info = I> + Send,
fn async_receive<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut Self,
&'life1 mut I,
&'life2 mut [u8],
AsyncOptions
) -> Pin<Box<dyn Future<Output = Result<usize, E>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
E: 'async_trait,
T: 'async_trait,
[src]
&'life0 mut Self,
&'life1 mut I,
&'life2 mut [u8],
AsyncOptions
) -> Pin<Box<dyn Future<Output = Result<usize, E>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
E: 'async_trait,
T: 'async_trait,
impl<T, E> AsyncTransmit<E> for T where
E: Debug + Send + Unpin,
T: Transmit<Error = E> + Power<Error = E> + Send,
[src]
E: Debug + Send + Unpin,
T: Transmit<Error = E> + Power<Error = E> + Send,
fn async_transmit<'life0, 'life1, 'async_trait>(
&'life0 mut Self,
&'life1 [u8],
AsyncOptions
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
T: 'async_trait,
[src]
&'life0 mut Self,
&'life1 [u8],
AsyncOptions
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
T: 'async_trait,
impl<T, I, E> BlockingReceive<I, E> for T where
E: Debug,
I: Debug,
T: Receive<Info = I, Error = E> + DelayMs<u32>,
[src]
E: Debug,
I: Debug,
T: Receive<Info = I, Error = E> + DelayMs<u32>,
fn do_receive(
&mut Self,
&mut [u8],
&mut I,
BlockingOptions
) -> Result<usize, BlockingError<E>>
[src]
&mut Self,
&mut [u8],
&mut I,
BlockingOptions
) -> Result<usize, BlockingError<E>>
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]
E: Debug,
S: Debug + PartialEq<S> + Copy,
T: State<State = S, Error = E> + DelayMs<u32>,
fn set_state_checked(
&mut Self,
S,
BlockingOptions
) -> Result<(), BlockingError<E>>
[src]
&mut Self,
S,
BlockingOptions
) -> Result<(), BlockingError<E>>
impl<T, E> BlockingTransmit<E> for T where
E: Debug,
T: Transmit<Error = E> + Power<Error = E> + DelayMs<u32>,
[src]
E: Debug,
T: Transmit<Error = E> + Power<Error = E> + DelayMs<u32>,
fn do_transmit(
&mut Self,
&[u8],
BlockingOptions
) -> Result<(), BlockingError<E>>
[src]
&mut Self,
&[u8],
BlockingOptions
) -> Result<(), BlockingError<E>>
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,