pub enum Method {
Disabled = 0,
Auto = 1,
Static = 2,
}Expand description
How a family gets its address.
Variants§
Disabled = 0
IP_METHOD_DISABLED: the family is not used on the link.
Auto = 1
IP_METHOD_AUTO: DHCP for IPv4; router advertisements, and
DHCPv6 where the router asks for it, for IPv6.
Static = 2
IP_METHOD_STATIC: the address, prefix, and gateway that
follow.
Implementations§
Trait Implementations§
impl Copy for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)