netstack3_ip::device

Trait Ipv6RouteDiscoveryContext

Source
pub trait Ipv6RouteDiscoveryContext<BT: Ipv6RouteDiscoveryBindingsTypes>: DeviceIdContext<AnyDevice> {
    type WithDiscoveredRoutesMutCtx<'a>: Ipv6DiscoveredRoutesContext<BT, DeviceId = Self::DeviceId>;

    // Required method
    fn with_discovered_routes_mut<O, F: FnOnce(&mut Ipv6RouteDiscoveryState<BT>, &mut Self::WithDiscoveredRoutesMutCtx<'_>) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        cb: F,
    ) -> O;
}
Expand description

The execution context for IPv6 route discovery.

Required Associated Types§

Source

type WithDiscoveredRoutesMutCtx<'a>: Ipv6DiscoveredRoutesContext<BT, DeviceId = Self::DeviceId>

The inner discovered routes context.

Required Methods§

Source

fn with_discovered_routes_mut<O, F: FnOnce(&mut Ipv6RouteDiscoveryState<BT>, &mut Self::WithDiscoveredRoutesMutCtx<'_>) -> O>( &mut self, device_id: &Self::DeviceId, cb: F, ) -> O

Gets the route discovery state, mutably.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§