pub struct IpDeviceMulticastGroups<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> {
pub groups: MulticastGroupSet<I::Addr, GmpGroupState<I, BT>>,
pub gmp_proto: I::GmpProtoState<BT>,
pub gmp: GmpState<I, BT>,
pub gmp_config: I::GmpProtoConfig,
}
Expand description
The state kept for each device to handle multicast group membership.
Fields§
§groups: MulticastGroupSet<I::Addr, GmpGroupState<I, BT>>
Multicast groups this device has joined.
gmp_proto: I::GmpProtoState<BT>
Protocol-specific GMP state.
gmp: GmpState<I, BT>
GMP state.
gmp_config: I::GmpProtoConfig
GMP protocol-specific configuration.
Trait Implementations§
Source§impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceMulticastGroups<I, BT>> for DualStackIpDeviceState<BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceMulticastGroups<I, BT>> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<IpDeviceMulticastGroups<I, BT>>
type Lock = RwLock<IpDeviceMulticastGroups<I, BT>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Auto Trait Implementations§
impl<I, BT> Freeze for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: Freeze,
<I as IpDeviceStateIpExt>::GmpProtoConfig: Freeze,
<BT as TimerBindingsTypes>::Timer: Freeze,
impl<I, BT> RefUnwindSafe for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: RefUnwindSafe,
<I as IpDeviceStateIpExt>::GmpProtoConfig: RefUnwindSafe,
<BT as TimerBindingsTypes>::Timer: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
<BT as InstantBindingsTypes>::Instant: RefUnwindSafe,
impl<I, BT> Send for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: Send,
<I as IpDeviceStateIpExt>::GmpProtoConfig: Send,
impl<I, BT> Sync for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: Sync,
<I as IpDeviceStateIpExt>::GmpProtoConfig: Sync,
impl<I, BT> Unpin for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: Unpin,
<I as IpDeviceStateIpExt>::GmpProtoConfig: Unpin,
<BT as TimerBindingsTypes>::Timer: Unpin,
<I as Ip>::Addr: Unpin,
<BT as InstantBindingsTypes>::Instant: Unpin,
impl<I, BT> UnwindSafe for IpDeviceMulticastGroups<I, BT>where
<I as IpDeviceStateIpExt>::GmpProtoState<BT>: UnwindSafe,
<I as IpDeviceStateIpExt>::GmpProtoConfig: UnwindSafe,
<BT as TimerBindingsTypes>::Timer: UnwindSafe,
<I as Ip>::Addr: UnwindSafe,
<BT as InstantBindingsTypes>::Instant: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more