Lines Matching refs:ConnectionState

465     a_agent.on_connection_state_change(Box::new(move |s: ConnectionState| {  in test_connectivity_on_startup()
468 if s == ConnectionState::Checking { in test_connectivity_on_startup()
970 a_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_connection_state_callback()
978 ConnectionState::Checking => { in test_connection_state_callback()
983 ConnectionState::Connected => { in test_connection_state_callback()
988 ConnectionState::Disconnected => { in test_connection_state_callback()
993 ConnectionState::Failed => { in test_connection_state_callback()
998 ConnectionState::Closed => { in test_connection_state_callback()
1658 a_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_connection_state_failed_delete_all_candidates()
1661 if c == ConnectionState::Failed { in test_connection_state_failed_delete_all_candidates()
1716 let hdlr_fn: OnConnectionStateChangeHdlrFn = Box::new(move |c: ConnectionState| { in test_connection_state_connecting_to_failed()
1720 if c == ConnectionState::Failed { in test_connection_state_connecting_to_failed()
1723 } else if c == ConnectionState::Checking { in test_connection_state_connecting_to_failed()
1726 } else if c == ConnectionState::Connected || c == ConnectionState::Completed { in test_connection_state_connecting_to_failed()
1825 agent_b.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_agent_restart_one_side()
1828 if c == ConnectionState::Failed || c == ConnectionState::Disconnected { in test_agent_restart_one_side()
1982 a_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_close_in_connection_state_callback()
1986 if c == ConnectionState::Connected { in test_close_in_connection_state_callback()
1989 } else if c == ConnectionState::Closed { in test_close_in_connection_state_callback()
2037 a_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_run_task_in_connection_state_callback()
2040 if c == ConnectionState::Connected { in test_run_task_in_connection_state_callback()
2101 a_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_run_task_in_selected_candidate_pair_change_callback()
2104 if c == ConnectionState::Connected { in test_run_task_in_selected_candidate_pair_change_callback()
2166 b_agent.on_connection_state_change(Box::new(move |c: ConnectionState| { in test_lite_lifecycle()
2172 if c == ConnectionState::Connected { in test_lite_lifecycle()
2175 } else if c == ConnectionState::Disconnected { in test_lite_lifecycle()
2178 } else if c == ConnectionState::Failed { in test_lite_lifecycle()