pub trait IgmpStateContext<BT: IgmpBindingsTypes>: DeviceIdContext<AnyDevice> + IgmpContextMarker {
// Required method
fn with_igmp_state<O, F: FnOnce(&MulticastGroupSet<Ipv4Addr, GmpGroupState<Ipv4, BT>>) -> 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, GmpGroupState<Ipv4, BT>>) -> O>(
&mut self,
device: &Self::DeviceId,
cb: F,
) -> O
fn with_igmp_state<O, F: FnOnce(&MulticastGroupSet<Ipv4Addr, GmpGroupState<Ipv4, BT>>) -> O>( &mut self, device: &Self::DeviceId, cb: F, ) -> O
Calls the function with an immutable reference to the device’s IGMP 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.