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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)