pub struct SlaacConfigAndState<A: Ipv6LinkLayerAddr, BT: SlaacBindingsTypes> {
pub config: SlaacConfiguration,
pub dad_transmits: Option<NonZeroU16>,
pub retrans_timer: Duration,
pub link_layer_addr: Option<A>,
pub temp_secret_key: IidSecret,
pub stable_secret_key: IidSecret,
pub _marker: PhantomData<BT>,
}
Expand description
Supports SlaacContext::with_slaac_addrs_mut_and_configs
.
Contains the fields necessary for the SLAAC state machine.
Fields§
§config: SlaacConfiguration
The current config for the device.
dad_transmits: Option<NonZeroU16>
The configured number of DAD transmits.
retrans_timer: Duration
The configured retransmission timer (can be learned from the network).
link_layer_addr: Option<A>
The link-layer address of the interface, if it has one.
Used to generate IIDs for stable addresses.
temp_secret_key: IidSecret
Secret key for generating temporary addresses.
stable_secret_key: IidSecret
Secret key for generating stable addresses.
_marker: PhantomData<BT>
Auto Trait Implementations§
impl<A, BT> Freeze for SlaacConfigAndState<A, BT>where
A: Freeze,
impl<A, BT> RefUnwindSafe for SlaacConfigAndState<A, BT>where
A: RefUnwindSafe,
BT: RefUnwindSafe,
impl<A, BT> Send for SlaacConfigAndState<A, BT>
impl<A, BT> Sync for SlaacConfigAndState<A, BT>
impl<A, BT> Unpin for SlaacConfigAndState<A, BT>
impl<A, BT> UnwindSafe for SlaacConfigAndState<A, BT>where
A: UnwindSafe,
BT: 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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
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