pub struct UnitNetConfig {
pub ip: Ipv4Addr,
pub netmask: Ipv4Addr,
pub gateway: Ipv4Addr,
pub dns1: Ipv4Addr,
pub dns2: Ipv4Addr,
}Expand description
An IP configuration: the addresses a unit uses, or is told to use.
Fields§
§ip: Ipv4AddrThe address.
netmask: Ipv4AddrThe netmask.
gateway: Ipv4AddrThe gateway.
dns1: Ipv4AddrThe primary DNS server.
dns2: Ipv4AddrThe secondary DNS server.
Implementations§
Trait Implementations§
Source§impl Clone for UnitNetConfig
impl Clone for UnitNetConfig
impl Copy for UnitNetConfig
Source§impl Debug for UnitNetConfig
impl Debug for UnitNetConfig
Source§impl Default for UnitNetConfig
impl Default for UnitNetConfig
impl Eq for UnitNetConfig
Source§impl PartialEq for UnitNetConfig
impl PartialEq for UnitNetConfig
impl StructuralPartialEq for UnitNetConfig
Auto Trait Implementations§
impl Freeze for UnitNetConfig
impl RefUnwindSafe for UnitNetConfig
impl Send for UnitNetConfig
impl Sync for UnitNetConfig
impl Unpin for UnitNetConfig
impl UnsafeUnpin for UnitNetConfig
impl UnwindSafe for UnitNetConfig
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