pub struct IpConfig {
pub v4: bool,
pub v6: bool,
pub manual_dns: bool,
}Expand description
The IP families a device runs.
Separate from WifiConfig because a stack is not a link: a device
reached over Ethernet, or over a cellular modem, has these and no
Wi-Fi at all. Nothing here says which link the addresses are on.
Fields§
§v4: bool§v6: bool§manual_dns: boolWhether configured resolver overrides can actually be applied.
Implementations§
Trait Implementations§
impl Copy for IpConfig
impl Eq for IpConfig
impl StructuralPartialEq for IpConfig
Auto Trait Implementations§
impl Freeze for IpConfig
impl RefUnwindSafe for IpConfig
impl Send for IpConfig
impl Sync for IpConfig
impl Unpin for IpConfig
impl UnwindSafe for IpConfig
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)