pub enum SlaacConfig<Instant> {
Static {
valid_until: Lifetime<Instant>,
},
Temporary(TemporarySlaacConfig<Instant>),
}
Expand description
Configuration for an IPv6 address assigned via SLAAC that varies based on whether the address is static or temporary
Variants§
Static
The address is static.
Temporary(TemporarySlaacConfig<Instant>)
The address is a temporary address, as specified by RFC 8981.
Implementations§
Source§impl<Instant: Copy> SlaacConfig<Instant>
impl<Instant: Copy> SlaacConfig<Instant>
Sourcepub fn valid_until(&self) -> Lifetime<Instant>
pub fn valid_until(&self) -> Lifetime<Instant>
The lifetime for which the address is valid.
Trait Implementations§
Source§impl<Instant: Clone> Clone for SlaacConfig<Instant>
impl<Instant: Clone> Clone for SlaacConfig<Instant>
Source§fn clone(&self) -> SlaacConfig<Instant>
fn clone(&self) -> SlaacConfig<Instant>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Instant: Debug> Debug for SlaacConfig<Instant>
impl<Instant: Debug> Debug for SlaacConfig<Instant>
Source§impl<Instant: Hash> Hash for SlaacConfig<Instant>
impl<Instant: Hash> Hash for SlaacConfig<Instant>
Source§impl<Instant: PartialEq> PartialEq for SlaacConfig<Instant>
impl<Instant: PartialEq> PartialEq for SlaacConfig<Instant>
impl<Instant: Copy> Copy for SlaacConfig<Instant>
impl<Instant: Eq> Eq for SlaacConfig<Instant>
impl<Instant> StructuralPartialEq for SlaacConfig<Instant>
Auto Trait Implementations§
impl<Instant> Freeze for SlaacConfig<Instant>where
Instant: Freeze,
impl<Instant> RefUnwindSafe for SlaacConfig<Instant>where
Instant: RefUnwindSafe,
impl<Instant> Send for SlaacConfig<Instant>where
Instant: Send,
impl<Instant> Sync for SlaacConfig<Instant>where
Instant: Sync,
impl<Instant> Unpin for SlaacConfig<Instant>where
Instant: Unpin,
impl<Instant> UnwindSafe for SlaacConfig<Instant>where
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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