pub struct LowpanTest<'a, A: Alarm<'a>> {
alarm: &'a A,
test_counter: Cell<usize>,
port_table: &'static UdpPortManager,
mock_udp1: &'a MockUdp<'a, A>,
mock_udp2: &'a MockUdp<'a, A>,
test_mode: Cell<TestMode>,
}
Fields§
§alarm: &'a A
§test_counter: Cell<usize>
§port_table: &'static UdpPortManager
§mock_udp1: &'a MockUdp<'a, A>
§mock_udp2: &'a MockUdp<'a, A>
§test_mode: Cell<TestMode>
Implementations§
Source§impl<'a, A: Alarm<'a>> LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> LowpanTest<'a, A>
pub fn new( alarm: &'a A, port_table: &'static UdpPortManager, mock_udp1: &'static MockUdp<'a, A>, mock_udp2: &'static MockUdp<'a, A>, ) -> LowpanTest<'a, A>
pub fn start(&self)
pub fn start_with_app(&self)
pub fn start_rx(&self)
pub fn start_dual_rx(&self)
fn schedule_next(&self)
fn run_test_and_increment(&self)
fn num_tests(&self) -> usize
fn run_test(&self, test_id: usize)
fn bind_test(&self)
fn port_table_test(&self)
fn port_table_test2(&self)
fn capsule_send_fail(&self)
fn capsule_send_test(&self)
fn capsule_app_send_test(&self)
fn capsule_receive_test(&self)
fn capsule_dual_receive_test(&self)
fn addr_range_valid_test(&self)
fn port_range_valid_test(&self)
fn capsule_send_net_cap_test( &self, net_cap1: &'static NetworkCapability, net_cap2: &'static NetworkCapability, ) -> (Result<(), ErrorCode>, Result<(), ErrorCode>)
fn capsule_send_valid_net_cap_test(&self)
fn capsule_send_invalid_net_cap_port_test(&self)
fn capsule_send_invalid_net_cap_addr_test(&self)
fn capsule_send_invalid_net_cap_addr_port_test(&self)
Trait Implementations§
Source§impl<'a, A: Alarm<'a>> AlarmClient for LowpanTest<'a, A>
impl<'a, A: Alarm<'a>> AlarmClient 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