Trait netstack3_ip::gmp::MldStateContext

source ·
pub trait MldStateContext<BT: MldBindingsTypes>: DeviceIdContext<AnyDevice> {
    // Required method
    fn with_mld_state<O, F: FnOnce(&MulticastGroupSet<Ipv6Addr, MldGroupState<BT::Instant>>) -> O>(
        &mut self,
        device: &Self::DeviceId,
        cb: F,
    ) -> O;
}
Expand description

Provides immutable access to MLD state.

Required Methods§

source

fn with_mld_state<O, F: FnOnce(&MulticastGroupSet<Ipv6Addr, MldGroupState<BT::Instant>>) -> O>( &mut self, device: &Self::DeviceId, cb: F, ) -> O

Calls the function with an immutable reference to the device’s MLD state.

Object Safety§

This trait is not object safe.

Implementors§