Trait netstack3_ip::gmp::MldContext

source ·
pub trait MldContext<BT: MldBindingsTypes>: DeviceIdContext<AnyDevice> + IpDeviceSendContext<Ipv6, BT> + IpLayerHandler<Ipv6, BT> {
    // Required methods
    fn with_mld_state_mut<O, F: FnOnce(GmpStateRef<'_, Ipv6, Self, BT>) -> O>(
        &mut self,
        device: &Self::DeviceId,
        cb: F,
    ) -> O;
    fn get_ipv6_link_local_addr(
        &mut self,
        device: &Self::DeviceId,
    ) -> Option<LinkLocalUnicastAddr<Ipv6Addr>>;
}
Expand description

The execution context for the Multicast Listener Discovery (MLD) protocol.

Required Methods§

source

fn with_mld_state_mut<O, F: FnOnce(GmpStateRef<'_, Ipv6, Self, BT>) -> O>( &mut self, device: &Self::DeviceId, cb: F, ) -> O

Calls the function with a mutable reference to the device’s MLD state and whether or not MLD is enabled for the device.

Gets the IPv6 link local address on device.

Object Safety§

This trait is not object safe.

Implementors§