pub enum TemporarySlaacAddressConfiguration {
Enabled {
temp_valid_lifetime: NonZeroDuration,
temp_preferred_lifetime: NonZeroDuration,
temp_idgen_retries: u8,
},
Disabled,
}
Expand description
Configuration values for SLAAC temporary addressing.
The algorithm specified in RFC 8981 Section 3.4 references several configuration parameters, which are defined in Section 3.8 and Section 3.3.2 This struct contains the following values specified by the RFC:
- TEMP_VALID_LIFETIME
- TEMP_PREFERRED_LIFETIME
- TEMP_IDGEN_RETRIES
- secret_key
Variants§
Enabled
Temporary SLAAC address generation is enabled.
Fields
temp_valid_lifetime: NonZeroDuration
The maximum amount of time that a temporary address can be considered valid, from the time of its creation.
temp_preferred_lifetime: NonZeroDuration
The maximum amount of time that a temporary address can be preferred, from the time of its creation.
Disabled
Temporary SLAAC address generation is disabled.
Implementations§
Source§impl TemporarySlaacAddressConfiguration
impl TemporarySlaacAddressConfiguration
Sourcepub const DEFAULT_TEMP_VALID_LIFETIME: NonZeroDuration = _
pub const DEFAULT_TEMP_VALID_LIFETIME: NonZeroDuration = _
Default TEMP_VALID_LIFETIME specified by RFC 8981 Section 3.8.
Sourcepub const DEFAULT_TEMP_PREFERRED_LIFETIME: NonZeroDuration = _
pub const DEFAULT_TEMP_PREFERRED_LIFETIME: NonZeroDuration = _
Default TEMP_PREFERRED_LIFETIME specified by RFC 8981 Section 3.8.
Sourcepub const DEFAULT_TEMP_IDGEN_RETRIES: u8 = 3u8
pub const DEFAULT_TEMP_IDGEN_RETRIES: u8 = 3u8
Default TEMP_IDGEN_RETRIES specified by RFC 8981 Section 3.8.
Sourcepub fn enabled_with_rfc_defaults() -> TemporarySlaacAddressConfiguration
pub fn enabled_with_rfc_defaults() -> TemporarySlaacAddressConfiguration
Constructs a new instance with default values.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns if self
is enabled.
Trait Implementations§
Source§impl Clone for TemporarySlaacAddressConfiguration
impl Clone for TemporarySlaacAddressConfiguration
Source§fn clone(&self) -> TemporarySlaacAddressConfiguration
fn clone(&self) -> TemporarySlaacAddressConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for TemporarySlaacAddressConfiguration
impl Default for TemporarySlaacAddressConfiguration
Source§fn default() -> TemporarySlaacAddressConfiguration
fn default() -> TemporarySlaacAddressConfiguration
Source§impl PartialEq for TemporarySlaacAddressConfiguration
impl PartialEq for TemporarySlaacAddressConfiguration
Source§fn eq(&self, other: &TemporarySlaacAddressConfiguration) -> bool
fn eq(&self, other: &TemporarySlaacAddressConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.impl Copy for TemporarySlaacAddressConfiguration
impl Eq for TemporarySlaacAddressConfiguration
impl StructuralPartialEq for TemporarySlaacAddressConfiguration
Auto Trait Implementations§
impl Freeze for TemporarySlaacAddressConfiguration
impl RefUnwindSafe for TemporarySlaacAddressConfiguration
impl Send for TemporarySlaacAddressConfiguration
impl Sync for TemporarySlaacAddressConfiguration
impl Unpin for TemporarySlaacAddressConfiguration
impl UnwindSafe for TemporarySlaacAddressConfiguration
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
Source§impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
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)
clone_to_uninit
)