pub struct LowpanTest<'a, A: Alarm<'a>> {
alarm: &'a A,
sixlowpan_tx: TxState<'a>,
radio: &'a dyn MacDevice<'a>,
test_counter: Cell<usize>,
}
Fields§
§alarm: &'a A
§sixlowpan_tx: TxState<'a>
§radio: &'a dyn MacDevice<'a>
§test_counter: Cell<usize>
Implementations§
Source§impl<'a, A: Alarm<'a>> LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> LowpanTest<'a, A>
pub fn new( sixlowpan_tx: TxState<'a>, radio: &'a dyn MacDevice<'a>, alarm: &'a A, ) -> LowpanTest<'a, A>
pub fn start(&self)
fn schedule_next(&self)
fn run_test_and_increment(&self)
fn num_tests(&self) -> usize
fn run_test(&self, test_id: usize)
fn run_check_test(&self, test_id: usize, buf: &[u8], len: usize)
fn ipv6_send_packet_test(&self, tf: TF, hop_limit: u8, sac: SAC, dac: DAC)
unsafe fn send_ipv6_packet(&self, _: &[u8])
fn send_next(&self, tx_buf: &'static mut [u8])
Trait Implementations§
Source§impl<'a, A: Alarm<'a>> AlarmClient for LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> AlarmClient for LowpanTest<'a, A>
Source§impl<'a, A: Alarm<'a>> SixlowpanRxClient for LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> SixlowpanRxClient for LowpanTest<'a, A>
Source§impl<'a, A: Alarm<'a>> TxClient for LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> TxClient for LowpanTest<'a, A>
Auto Trait Implementations§
impl<'a, A> !Freeze for LowpanTest<'a, A>
impl<'a, A> !RefUnwindSafe for LowpanTest<'a, A>
impl<'a, A> !Send for LowpanTest<'a, A>
impl<'a, A> !Sync for LowpanTest<'a, A>
impl<'a, A> Unpin for LowpanTest<'a, A>
impl<'a, A> !UnwindSafe for LowpanTest<'a, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more