pub struct GmpStateRef<'a, I: IpExt, CC: GmpTypeLayout<I, BT>, BT: GmpBindingsTypes> {
pub enabled: bool,
pub groups: &'a mut MulticastGroupSet<I::Addr, GmpGroupState<I, BT>>,
pub gmp: &'a mut GmpState<I, BT>,
pub config: &'a CC::Config,
}
Expand description
A reference to a device’s GMP state.
Fields§
§enabled: bool
True if GMP is enabled for the device.
groups: &'a mut MulticastGroupSet<I::Addr, GmpGroupState<I, BT>>
Mutable reference to the multicast groups on a device.
gmp: &'a mut GmpState<I, BT>
Mutable reference to the device’s GMP state.
config: &'a CC::Config
Protocol specific configuration.
Auto Trait Implementations§
impl<'a, I, CC, BT> Freeze for GmpStateRef<'a, I, CC, BT>
impl<'a, I, CC, BT> RefUnwindSafe for GmpStateRef<'a, I, CC, BT>where
<CC as GmpTypeLayout<I, BT>>::Config: RefUnwindSafe,
<BT as TimerBindingsTypes>::Timer: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
<BT as InstantBindingsTypes>::Instant: RefUnwindSafe,
impl<'a, I, CC, BT> Send for GmpStateRef<'a, I, CC, BT>where
<CC as GmpTypeLayout<I, BT>>::Config: Sync,
impl<'a, I, CC, BT> Sync for GmpStateRef<'a, I, CC, BT>where
<CC as GmpTypeLayout<I, BT>>::Config: Sync,
impl<'a, I, CC, BT> Unpin for GmpStateRef<'a, I, CC, BT>
impl<'a, I, CC, BT> !UnwindSafe for GmpStateRef<'a, I, CC, BT>
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