Trait netstack3_ip::gmp::IgmpStateContext
source · pub trait IgmpStateContext<BT: IgmpBindingsTypes>: DeviceIdContext<AnyDevice> {
// Required method
fn with_igmp_state<O, F: FnOnce(&MulticastGroupSet<Ipv4Addr, IgmpGroupState<BT::Instant>>) -> O>(
&mut self,
device: &Self::DeviceId,
cb: F,
) -> O;
}
Expand description
Provides immutable access to IGMP state.
Required Methods§
sourcefn with_igmp_state<O, F: FnOnce(&MulticastGroupSet<Ipv4Addr, IgmpGroupState<BT::Instant>>) -> O>(
&mut self,
device: &Self::DeviceId,
cb: F,
) -> O
fn with_igmp_state<O, F: FnOnce(&MulticastGroupSet<Ipv4Addr, IgmpGroupState<BT::Instant>>) -> O>( &mut self, device: &Self::DeviceId, cb: F, ) -> O
Calls the function with an immutable reference to the device’s IGMP state.
Object Safety§
This trait is not object safe.