pub struct Model16 {
pub nam: Option<String>,
pub cfg: Cfg,
pub ctl: Ctl,
pub addr: String,
pub msk: String,
pub gw: Option<String>,
pub dns1: Option<String>,
pub dns2: Option<String>,
pub mac: Option<String>,
pub lnk_ctl: Option<LnkCtl>,
}Available on crate feature
model16 only.Expand description
Simple IP Network
Include this model for a simple IPv4 network stack
Fields§
§nam: Option<String>Name
Interface name. (8 chars)
cfg: CfgConfig
Enumerated value. Force IPv4 configuration method
ctl: CtlControl
Bitmask value Configure use of services
addr: StringAddress
IP address
msk: StringNetmask
Netmask
gw: Option<String>Gateway
Gateway IP address
dns1: Option<String>DNS1
32 bit IP address of DNS server
dns2: Option<String>DNS2
32 bit IP address of DNS server
mac: Option<String>MAC
IEEE MAC address of this interface
lnk_ctl: Option<LnkCtl>Link Control
Bitmask value. Link control flags
Implementations§
Source§impl Model16
impl Model16
pub const NAM: Point<Self, Option<String>>
pub const CFG: Point<Self, Cfg>
pub const CTL: Point<Self, Ctl>
pub const ADDR: Point<Self, String>
pub const MSK: Point<Self, String>
pub const GW: Point<Self, Option<String>>
pub const DNS1: Point<Self, Option<String>>
pub const DNS2: Point<Self, Option<String>>
pub const MAC: Point<Self, Option<String>>
pub const LNK_CTL: Point<Self, Option<LnkCtl>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model16
impl RefUnwindSafe for Model16
impl Send for Model16
impl Sync for Model16
impl Unpin for Model16
impl UnsafeUnpin for Model16
impl UnwindSafe for Model16
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