/// Get the local address of the interface that will be used to route to a
/// remote address.
///
/// `local_address_for_remote` looks up the route to `remote`. If one is found,
/// it returns the IP address of the interface specified by the route, or `None`
/// if the interface has no IP address.
Get the local address of the interface that will be used to route to a
remote address.

`local_address_for_remote` looks up the route to `remote`. If one is found,
it returns the IP address of the interface specified by the route, or `None`
if the interface has no IP address.
Get the local address of the interface that will be used to route to a remote address . ` local_address_for_remote ` looks up the route to ` remote ` . If one is found it returns the IP address of the interface specified by the route or ` None ` if the interface has no IP address .
pub(crate) fn local_address_for_remote<D: EventDispatcher, A: IpAddress>(
    ctx: &Ctx<D>,
    remote: SpecifiedAddr<A>,
) -> Option<SpecifiedAddr<A>> {
    let route = lookup_route(ctx, remote)?;
    crate::device::get_ip_addr_subnet(ctx, route.device).map(|a| a.addr())
}
pub ( crate ) fn local_address_for_remote < D : EventDispatcher , A : IpAddress > ( ctx : & Ctx < D > , remote : SpecifiedAddr < A > , ) -> Option < SpecifiedAddr < A > > { let route = lookup_route ( ctx , remote ) ? ; crate :: device :: get_ip_addr_subnet ( ctx , route . device ) . map ( | a | a . addr ( ) ) }
Get the local address of the interface that will be used to route to a
remote address.
Get the local address of the interface that will be used to route to a remote address .
ctx
&Ctx<D>
remote
SpecifiedAddr<A>