Skip to main content

setup_fake_ctx_with_dualstack_conn_addrs

Function setup_fake_ctx_with_dualstack_conn_addrs 

Source
pub fn setup_fake_ctx_with_dualstack_conn_addrs<CC, BC: Default, D: FakeStrongDeviceId>(
    local_ip: IpAddr,
    remote_ip: SpecifiedAddr<IpAddr>,
    devices: impl IntoIterator<Item = D>,
    core_ctx_builder: impl FnOnce(Vec<FakeDeviceConfig<D, SpecifiedAddr<IpAddr>>>) -> CC,
) -> CtxPair<CC, BC>
Expand description

Helper function to ensure the Fake CoreCtx and BindingsCtx are setup with FakeDeviceConfig (one per provided device), with remote/local IPs that support a connection to the given remote_ip.