pub struct Config<'a> {
pub server: ServerInfo,
pub address: Ipv4Cidr,
pub router: Option<Ipv4Address>,
pub dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>,
pub packet: Option<DhcpPacket<&'a [u8]>>,
}
Expand description
IPv4 configuration data provided by the DHCP server.
Fields§
§server: ServerInfo
Information on how to reach the DHCP server that responded with DHCP configuration.
address: Ipv4Cidr
IP address
router: Option<Ipv4Address>
Router address, also known as default gateway. Does not necessarily match the DHCP server’s address.
dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>
DNS servers
packet: Option<DhcpPacket<&'a [u8]>>
Received DHCP packet
Trait Implementations§
impl<'a> Eq for Config<'a>
impl<'a> StructuralPartialEq for Config<'a>
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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