#[non_exhaustive]pub enum AddrOrigin {
Manual,
Dhcpv4,
LinkLocal,
Slaac,
}Expand description
Where an interface address came from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Manual
Assigned by the application.
Dhcpv4
Learned from a DHCPv4 lease.
LinkLocal
The IPv6 link-local address the stack derives from the hardware address.
Slaac
Formed by SLAAC from a router-advertised prefix.
Trait Implementations§
Source§impl Clone for AddrOrigin
impl Clone for AddrOrigin
Source§fn clone(&self) -> AddrOrigin
fn clone(&self) -> AddrOrigin
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 AddrOrigin
Source§impl Debug for AddrOrigin
impl Debug for AddrOrigin
impl Eq for AddrOrigin
Source§impl PartialEq for AddrOrigin
impl PartialEq for AddrOrigin
impl StructuralPartialEq for AddrOrigin
Auto Trait Implementations§
impl Freeze for AddrOrigin
impl RefUnwindSafe for AddrOrigin
impl Send for AddrOrigin
impl Sync for AddrOrigin
impl Unpin for AddrOrigin
impl UnsafeUnpin for AddrOrigin
impl UnwindSafe for AddrOrigin
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