pub struct SlaacState<BT: SlaacBindingsTypes> { /* private fields */ }
Expand description
Global Slaac state on a device.
Implementations§
Source§impl<BC: SlaacBindingsTypes + TimerContext> SlaacState<BC>
impl<BC: SlaacBindingsTypes + TimerContext> SlaacState<BC>
Sourcepub fn new<D: WeakDeviceIdentifier, CC: CoreTimerContext<SlaacTimerId<D>, BC>>(
bindings_ctx: &mut BC,
device_id: D,
) -> Self
pub fn new<D: WeakDeviceIdentifier, CC: CoreTimerContext<SlaacTimerId<D>, BC>>( bindings_ctx: &mut BC, device_id: D, ) -> Self
Constructs a new SLAAC state for device_id
.
Trait Implementations§
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<SlaacState<BT>> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<SlaacState<BT>> for DualStackIpDeviceState<BT>
Source§type Lock = Mutex<SlaacState<BT>>
type Lock = Mutex<SlaacState<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<BT> Freeze for SlaacState<BT>
impl<BT> RefUnwindSafe for SlaacState<BT>where
<BT as TimerBindingsTypes>::Timer: RefUnwindSafe,
<BT as InstantBindingsTypes>::Instant: RefUnwindSafe,
impl<BT> Send for SlaacState<BT>
impl<BT> Sync for SlaacState<BT>
impl<BT> Unpin for SlaacState<BT>
impl<BT> UnwindSafe for SlaacState<BT>where
<BT as TimerBindingsTypes>::Timer: 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