#[non_exhaustive]pub struct SlaacState {
pub routers_seen: bool,
pub managed: bool,
pub other_config: bool,
}Expand description
What SLAAC has learned from the routers on the link, for the application.
The addresses and routes themselves are on the interface, see
Iface::ip_addrs and Stack::routes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.routers_seen: boolAt least one router advertisement was received.
managed: boolThe last router advertisement had the “managed address configuration” flag set: addresses are available through DHCPv6.
other_config: boolThe last router advertisement had the “other configuration” flag set: other configuration (like DNS servers) is available through DHCPv6.
Trait Implementations§
Source§impl Clone for SlaacState
impl Clone for SlaacState
Source§fn clone(&self) -> SlaacState
fn clone(&self) -> SlaacState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlaacState
Source§impl Debug for SlaacState
impl Debug for SlaacState
Source§impl Default for SlaacState
impl Default for SlaacState
Source§fn default() -> SlaacState
fn default() -> SlaacState
Returns the “default value” for a type. Read more
impl Eq for SlaacState
Source§impl PartialEq for SlaacState
impl PartialEq for SlaacState
impl StructuralPartialEq for SlaacState
Auto Trait Implementations§
impl Freeze for SlaacState
impl RefUnwindSafe for SlaacState
impl Send for SlaacState
impl Sync for SlaacState
impl Unpin for SlaacState
impl UnsafeUnpin for SlaacState
impl UnwindSafe for SlaacState
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