pub trait MldStateContext<BT: MldBindingsTypes>: DeviceIdContext<AnyDevice> + MldContextMarker {
// Required method
fn with_mld_state<O, F: FnOnce(&MulticastGroupSet<Ipv6Addr, GmpGroupState<Ipv6, BT>>) -> O>(
&mut self,
device: &Self::DeviceId,
cb: F,
) -> O;
}
Expand description
Provides immutable access to MLD state.
Required Methods§
Sourcefn with_mld_state<O, F: FnOnce(&MulticastGroupSet<Ipv6Addr, GmpGroupState<Ipv6, BT>>) -> O>(
&mut self,
device: &Self::DeviceId,
cb: F,
) -> O
fn with_mld_state<O, F: FnOnce(&MulticastGroupSet<Ipv6Addr, GmpGroupState<Ipv6, BT>>) -> O>( &mut self, device: &Self::DeviceId, cb: F, ) -> O
Calls the function with an immutable reference to the device’s MLD state.
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.